vimscript: use SID for commands

This commit is contained in:
Rico Sta. Cruz 2017-09-09 17:42:32 +08:00
parent fe9da5708e
commit db178b3b69
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 2 additions and 2 deletions

View File

@ -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 <SID>foo()
```
{: .-setup}
```vim
function! script#foo()
function! s:foo()
...
endfunction
```