Closed kauer3 closed 3 years ago
No, that should not happen.
vim
a wrapper script by any chance?In Vim, :echo argc()
tells how many arguments were given to Vim and that's what the plugin checks. So, can you confirm the following two examples?
vim -u NORC -N +'autocmd VimEnter * echomsg argc()'
echoes 0vim -u NORC -N +'autocmd VimEnter * echomsg argc()' foo
echoes 1So, I was just checking the startify options in my vimrc and realized I had autocmd VimEnter * Startify
, which obviously caused this problem. I found your plugin in a post or video somewhere, and this autocmd was among the recomended configs, but I sould have seen it before opening an issue.
Thanks for the great plugin!
I may be wrong, but from what I understand from the documentation, startify should be displayed only when starting vim without giving any filenames. In my case, even when I do provide a file (
vim filename
) it is displayed. And if I got it wrong and this is the expected behavior, is there a way to change it?