diff --git a/vimscript.md b/vimscript.md index 1d4334e3d..57b64bcc0 100644 --- a/vimscript.md +++ b/vimscript.md @@ -222,12 +222,12 @@ Custom commands start with uppercase letters. The `!` redefines a command if it ### Commands calling functions ```vim -command! Save call script#foo() +command! Save call foo() ``` {: .-setup} ```vim -function! script#foo() +function! s:foo() ... endfunction ```