From b51dc62ef0a82e7794520a4c0bdb5373e5b9c707 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 2 Nov 2012 17:54:48 +0900 Subject: [PATCH] - Added python snippets. --- autoload/neosnippet/snippets/python.snip | 10 ++++++++++ doc/neosnippet.txt | 1 + 2 files changed, 11 insertions(+) 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.