- Improved documentation.
This commit is contained in:
parent
f0a97fa957
commit
a0c387de1e
@ -808,7 +808,8 @@ function! s:eval_snippet(snippet_text)"{{{
|
||||
endif
|
||||
let prev_match = matchend(a:snippet_text,
|
||||
\ '\\\@<!`.\{-}\\\@<!`', match)
|
||||
let snip_word .= eval(a:snippet_text[match+1 : prev_match - 2])
|
||||
sandbox let snip_word .= eval(
|
||||
\ a:snippet_text[match+1 : prev_match - 2])
|
||||
|
||||
let match = match(a:snippet_text, '\\\@<!`.\{-}\\\@<!`', prev_match)
|
||||
endwhile
|
||||
|
@ -334,6 +334,12 @@ Eval snippet feature is available.
|
||||
prev_word '^'
|
||||
`expand("%")`
|
||||
<
|
||||
Note: You want to use backticks in snippet, you must escape backticks.
|
||||
>
|
||||
snippet code
|
||||
abbr code
|
||||
\`${1}\`${2}
|
||||
<
|
||||
If you use |:NeoSnippetEdit| command for easy snippet editing, the file will
|
||||
be loaded automatically when you save the file.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user