Fix #297 neosnippet#expand()

This commit is contained in:
Shougo Matsushita
2015-11-03 17:45:03 +09:00
parent 601f62b620
commit 6ce1d55242
2 changed files with 22 additions and 6 deletions

View File

@@ -335,10 +335,13 @@ neosnippet#anonymous({snippet}, [{options}])
*neosnippet#expand()*
neosnippet#expand({trigger})
It expands the snippet trigger.
{trigger} is snippet trigger. >
nnoremap <silent> test
{trigger} is snippet trigger.
Note: You can use this function with |map-<expr>|.
>
inoremap <silent> test
\ i<C-r>=neosnippet#expand('date_english')<CR>
nnoremap <silent><expr> test
\ neosnippet#expand('date_english')
------------------------------------------------------------------------------
FUNCTIONS *neosnippet-functions*