You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the error shown in the picture in my .vimrc, but actually, this function works fine with either vim or neovim. I know that (neo)vim's document eval.txt says that a function name must start with a capital, but I think it's just a problem with that document.
I start the function name with _ for two reasons:
This way, it will never conflict with functions defined by plugins I installed
I map it to some keys, so will never need to call it by name and I don't want to see any autocompletion about it when I type :call V<Tab>
After readinginit.vim written by someone else, I realize that what I should do is to apply :s/_/s:/to my function name. But I still consider this as inconsistency between implementaion and document. What do you think about it? @justinmk
The text was updated successfully, but these errors were encountered:
I got the error shown in the picture in my
.vimrc
, but actually, this function works fine with eithervim
orneovim
. I know that (neo)vim's documenteval.txt
says that a function name must start with a capital, but I think it's just a problem with that document.I start the function name with
_
for two reasons:This way, it will never conflict with functions defined by plugins I installed
I map it to some keys, so will never need to call it by name and I don't want to see any autocompletion about it when I type
:call V<Tab>
After reading
init.vim
written by someone else, I realize that what I should do is to apply:s/_/s:/
to my function name. But I still consider this as inconsistency between implementaion and document. What do you think about it?@justinmk
The text was updated successfully, but these errors were encountered: