From 617a858341094736eb355a7a143ebe23dc21fe61 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 30 Oct 2012 07:45:46 +0900 Subject: [PATCH] - Improved documentation. --- doc/neosnippet.txt | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 9cb100f..0bfd534 100644 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -181,6 +181,8 @@ KEY MAPPINGS *neosnippet-key-mappings* (neosnippet_expand_or_jump) *(neosnippet_expand_or_jump)* +s_(neosnippet_expand_or_jump) + *s_(neosnippet_expand_or_jump)* Expands a cursor snippet of plural lines. When there is no snippet, jumps to the next placeholder. @@ -190,6 +192,8 @@ KEY MAPPINGS *neosnippet-key-mappings* (neosnippet_jump_or_expand) *(neosnippet_jump_or_expand)* +s_(neosnippet_jump_or_expand) + *s_(neosnippet_jump_or_expand)* Jump to next placeholder. If there is no placeholder, expand a multiline cursor snippet. @@ -199,6 +203,8 @@ KEY MAPPINGS *neosnippet-key-mappings* (neosnippet_expand) *(neosnippet_expand)* +s_(neosnippet_expand) + *s_(neosnippet_expand)* Expand a cursor snippet. Does nothing if there is no snippet. *(neocomplcache_snippets_force_expand)* @@ -207,6 +213,8 @@ KEY MAPPINGS *neosnippet-key-mappings* (neosnippet_jump) *(neosnippet_jump)* +s_(neosnippet_jump) + *s_(neosnippet_jump)* Jump to next place holder. Do not expand any snippet. When you do not want to expand a snippet name, use this keymapping. @@ -224,6 +232,10 @@ i_(neosnippet_start_unite_snippet) Note: |(neocomplcache_start_unite_snippet)| is obsolete name. +x_(neosnippet_expand_target) + *x_(neosnippet_expand_target)* + Expand inputted trigger by selected target text. + neosnippet#expandable() *neosnippet#expandable()* Use this function with imap . It checks whether cursor @@ -276,6 +288,7 @@ EXAMPLES *neosnippet-examples* " Plugin key-mappings. imap (neosnippet_expand_or_jump) smap (neosnippet_expand_or_jump) + xmap (neosnippet_expand_target) " SuperTab like snippets behavior. "imap neosnippet#expandable() ? @@ -371,6 +384,17 @@ Commented placeholder feature is available. If the default value starts with ${2} endif < +Targetted placeholder feature is available. If the default value starts with +"TARGET:", neosnippet will insert selected text in +|(neosnippet_expand_target)|. +> + snippet if + abbr if endif + options head + if ${1:#:condition} + ${2:TARGET} + endif +< Note: To contain "}" character in default value, you must escape "}". > snippet test @@ -468,7 +492,8 @@ CHANGELOG *neosnippet-changelog* - Implemented commented placeholder. - Improved python snippets. - Fixed for alias. -- Implemented target placeholder. +- Implemented targetted placeholder. +- Improved documentation. 2012-10-29 - Improved parse of snippets file.