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.