views:

163

answers:

2

Not that it is seriously burdensome to type

:My_custom_foobar()

instead of just

:my_custom_foobar()

but it just feels odd considering how virtually every other aspect of Vim is so extensible. Some searching for an answer has not turned up much, but I know it's got to be possible without having to recompile Vim from source. Does anyone out there know a way to accomplish this?

+2  A: 

Maybe try mapping.

nnoremap <Leader>f :call My_custom_foobar()<CR>

You have to do it one function at a time. Not sure how you would go about doing it for all functions. I say stick to convention and type the capital letter for function name.

Yada
+2  A: 

You could do it with a :abbrev, but it's really not recommended. The reason you cannot do this is because of: 1) vi compatibility, 2) future expansion.

Point 2 is the bigger issue -- if you could write functions, then there's no guarantee that you don't wind up naming one that later conflicts with a built-in function, and this is simply not allowed. You'd end up getting errors when trying to load the function.

Zathrus