Title: Custom behaviour: launch when vim is invoked w/o arguments or with a folder · Issue #4 · dylanaraps/fff.vim · GitHub
Open Graph Title: Custom behaviour: launch when vim is invoked w/o arguments or with a folder · Issue #4 · dylanaraps/fff.vim
X Title: Custom behaviour: launch when vim is invoked w/o arguments or with a folder · Issue #4 · dylanaraps/fff.vim
Description: I was successful configuring my .vimrc to launch fff if vim is invoked without arguments (copying a similar setting offered for NERD Tree): autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | ...
Open Graph Description: I was successful configuring my .vimrc to launch fff if vim is invoked without arguments (copying a similar setting offered for NERD Tree): autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * ...
X Description: I was successful configuring my .vimrc to launch fff if vim is invoked without arguments (copying a similar setting offered for NERD Tree): autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * ...
Opengraph URL: https://github.com/dylanaraps/fff.vim/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Custom behaviour: launch when vim is invoked w/o arguments or with a folder","articleBody":"I was successful configuring my .vimrc to launch fff if vim is invoked without arguments (copying a similar setting offered for NERD Tree):\r\n\r\n```\r\nautocmd StdinReadPre * let s:std_in=1\r\nautocmd VimEnter * if argc() == 0 \u0026\u0026 !exists(\"s:std_in\") | exe 'F' | endif\r\n\r\n```\r\n\r\nHowever it does not work nicely if invoked with a folder (once more, copied from NERD tree), as it follows:\r\n\r\n```\r\nautocmd StdinReadPre * let s:std_in=1\r\nautocmd VimEnter * if argc() == 1 \u0026\u0026 isdirectory(argv()[0]) \u0026\u0026 !exists(\"s:std_in\") | exe 'F' argv()[0] | wincmd p | ene | endif\r\n\r\n```\r\n\r\nAny suggestion on how to make the last working smoothly?","author":{"url":"https://github.com/mgiugliano","@type":"Person","name":"mgiugliano"},"datePublished":"2019-03-10T19:06:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4/fff.vim/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:230d2c77-2150-d10d-8f31-2707d0e8bf93 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB7A:1C79AE:8D792E:C3F056:6A4BD561 |
| html-safe-nonce | 45c63dc9d23ce80fd85c40aca0104f17d1106e0ac618d07d3191fbbaf70dec9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjdBOjFDNzlBRTo4RDc5MkU6QzNGMDU2OjZBNEJENTYxIiwidmlzaXRvcl9pZCI6IjQ4NjIxMjI5NjQ3ODUyODg1NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6bfed37516ff67920e4b826dbb214a2c0526127e1b267ea11e2b33d6cc4cc9bf |
| hovercard-subject-tag | issue:419220239 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dylanaraps/fff.vim/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/627ec21a8849e446e879683acc05faddba04eaa26e0454c847d1f04433b0aaf5/dylanaraps/fff.vim/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/627ec21a8849e446e879683acc05faddba04eaa26e0454c847d1f04433b0aaf5/dylanaraps/fff.vim/issues/4 |
| og:image:alt | I was successful configuring my .vimrc to launch fff if vim is invoked without arguments (copying a similar setting offered for NERD Tree): autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgiugliano |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9df996be9551ac02247d09a2f7f64ece66c35ca28885d346e98fdfda9cdaa37b |
| turbo-cache-control | no-preview |
| go-import | github.com/dylanaraps/fff.vim git https://github.com/dylanaraps/fff.vim.git |
| octolytics-dimension-user_id | 6799467 |
| octolytics-dimension-user_login | dylanaraps |
| octolytics-dimension-repository_id | 167782833 |
| octolytics-dimension-repository_nwo | dylanaraps/fff.vim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 167782833 |
| octolytics-dimension-repository_network_root_nwo | dylanaraps/fff.vim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7242837c61fe4c8b774b83b9ee05b1881ba589f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width