Call a Vimscript Method in Vim

May 17, 2015 ยท View on GitHub

To call a Vimscript method in Vim, first source the file.

:source ~/path/to/vimscript.vim

Next, put the cursor over the method call, and run that line.

:exec getline(".")