diff --git a/autoload/neosnippet/snippets/python.snip b/autoload/neosnippet/snippets/python.snip index d8b7e7f..b8dea2a 100644 --- a/autoload/neosnippet/snippets/python.snip +++ b/autoload/neosnippet/snippets/python.snip @@ -103,3 +103,13 @@ options head while ${1:#:condition}: ${0:TARGET} +snippet with +abbr with open({file}) as : +options head + with open(${1:#:filename, mode}) as f + ${0:TARGET} + +snippet filter +abbr [x for x in {list} if {condition}] + [$1 for ${1:x} in ${2:#:list} if ${3:#:condition}] + diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 468fc49..d070c33 100644 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -660,6 +660,7 @@ CHANGELOG *neosnippet-changelog* - Used partial match for neocomplcache completion. - Fixed for neocomplcache. - Improved partial match behavior. +- Added python snippets. 2012-11-01 - Fixed snippet mirror behavior.