vimscript: use SID for commands
This commit is contained in:
parent
fe9da5708e
commit
db178b3b69
|
@ -222,12 +222,12 @@ Custom commands start with uppercase letters. The `!` redefines a command if it
|
||||||
### Commands calling functions
|
### Commands calling functions
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
command! Save call script#foo()
|
command! Save call <SID>foo()
|
||||||
```
|
```
|
||||||
{: .-setup}
|
{: .-setup}
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
function! script#foo()
|
function! s:foo()
|
||||||
...
|
...
|
||||||
endfunction
|
endfunction
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue