So I want to be able to type something like:
:hello
in vim normal mode and then have it echo out 'hello sir'.
I made the below vimscript into a plugin, and I get the error:
Not an editor command
What am I doing wrong?
vimscript
if exists("g:hello_world") || &cp || v:version < 700
finish
endif
let g:hello_world=1 " your version number
let s:keepcpo = &cpo
set cpo&vim
fun! s:hellosir()
echo 'hello sir'
endfun
command hello call hellosir()