How do I create a mapping that calls a script-local function in Vim without namespace collisions?
<SID>
(Script ID) is a Vimscript token that expands to a unique, per-script prefix at runtime.
<SID>
(Script ID) is a Vimscript token that expands to a unique, per-script prefix at runtime.
:%s/pattern/\=MyFunc(submatch(0))/g
The \= prefix in Vim's substitute replacement invokes the expression register, which can call any Vimscript function.
]] / [[
The ]] and [[ commands let you jump forward and backward between section boundaries, which in most programming languages correspond to function or method defini
navigation #navigation #motions #normal-mode #code #functions