From a6eae4ae3629f58c149d5f0baf2da70d10563c97 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sat, 16 Feb 2013 13:13:32 +0900 Subject: [PATCH] - Added sh snippet. --- autoload/neosnippet/snippets/sh.snip | 12 ++++++++++-- doc/neosnippet.txt | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/autoload/neosnippet/snippets/sh.snip b/autoload/neosnippet/snippets/sh.snip index 7d43400..a221c59 100644 --- a/autoload/neosnippet/snippets/sh.snip +++ b/autoload/neosnippet/snippets/sh.snip @@ -19,8 +19,8 @@ snippet for ${0:TARGET} done -snippet wh -abbr while +snippet while +alias wh while ${1:#:condition} ; do ${0:TARGET} done @@ -55,3 +55,11 @@ snippet tmp trap "rm -f '$${1}'; exit 1" 1 15 # HUP TERM ${0} +snippet function +alias func + ${1:#:name}() + { + ${0:TARGET} + } + + diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 61a02d3..26f2164 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -718,6 +718,9 @@ A: Please try below settings. It defines snipMate function. ============================================================================== CHANGELOG *neosnippet-changelog* +2013-02-16 +- Added sh snippet. + 2013-02-01 - Added vim snippets.