-
-
Notifications
You must be signed in to change notification settings - Fork 17
Description
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