From e3118e888fa040b97a3e19aa6997206445e53c02 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sat, 19 Dec 2015 12:17:31 +0900 Subject: [PATCH] You can use ${0} in oneline snippet --- doc/neosnippet.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index bf43f86..6b333b3 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -347,10 +347,10 @@ neosnippet#anonymous({snippet}) Note: You can use this function with |map-|. > inoremap (( - \ =neosnippet#anonymous('\left(${1}\right)${2}') + \ =neosnippet#anonymous('\left(${1}\right)${0}') " OR inoremap (( - \ neosnippet#anonymous('\left(${1}\right)${2}') + \ neosnippet#anonymous('\left(${1}\right)${0}') < *neosnippet#expand()* neosnippet#expand({trigger}) @@ -580,8 +580,6 @@ The structure of a placeholder can be: placeholders in the snippet, it will repeat its content. $1 is synchronized to ${1} and so on. ${0} will be the final jump placeholder. - Note: You should not use ${0} for one line snippet. - It conflicts with nested snippet feature. Example