What does the sharp (#) sign mean in a vim script function definition?
So I was looking for ways to get some object oriented objects in vimcript when I found this page
So for example:
function gnat#Make () dict
...
return
endfunction gnat#Make
- What does "#" mean?
- Is it related to the end of the function explicitly? (usually just one
endfu[nction]
without a function name)
Thank!
+3
source to share
1 answer
#
intended for startup scripts. Try it :h autoload
for more information.
I don't think that function completion "explicitly" is allowed as stated in the vim help:
:endf[unction] The end of a function definition. Must be on a line
by its own, without other commands.
But it seems that when you try to put something after :endf
, even if it is not a function name, no error is thrown.
+4
source to share