diff options
| author | Anton Bobov <abobov@gmail.com> | 2013-10-18 22:14:58 +0600 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2013-10-19 00:47:57 +0600 |
| commit | 1048b107a3cfbb0490e2b394c32c90fafe4b98ac (patch) | |
| tree | 12094d66f99bf636eaa2fb91fdbed54b2df70d94 /files/.vim/snippets/python.snippets | |
| parent | ede115791a81775b1e7a65ab8ed3a8872c94a38e (diff) | |
Vim snipmate plugin moved to the bundle.
Diffstat (limited to 'files/.vim/snippets/python.snippets')
| -rw-r--r-- | files/.vim/snippets/python.snippets | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/files/.vim/snippets/python.snippets b/files/.vim/snippets/python.snippets deleted file mode 100644 index af93a5b..0000000 --- a/files/.vim/snippets/python.snippets +++ /dev/null @@ -1,72 +0,0 @@ -snippet #! - #!/usr/bin/python - -snippet wh - while ${1:condition}: - ${2:# code...} -snippet for - for ${1:needle} in ${2:haystack}: - ${3:# code...} -# New Class -snippet cl - class ${1:ClassName}(${2:object}): - """${3:docstring for $1}""" - def __init__(self, ${4:arg}): - ${5:super($1, self).__init__()} - self.$4 = $4 - ${6} -# New Function -snippet def - def ${1:fname}(${2:`indent('.') ? 'self' : ''`}): - """${3:docstring for $1}""" - ${4:pass} -# New Method -snippet defs - def ${1:mname}(self, ${2:arg})): - ${3:pass} -# New Property -snippet property - def ${1:foo}(): - doc = "${2:The $1 property.}" - def fget(self): - ${3:return self._$1} - def fset(self, value): - -# Self -snippet . - self. -snippet try Try/Except - try: - ${1:pass} - except ${2:Exception}, ${3:e}: - ${4:raise $3} -snippet try Try/Except/Else - try: - ${1:pass} - except ${2:Exception}, ${3:e}: - ${4:raise $3} - else: - ${5:pass} -snippet try Try/Except/Finally - try: - ${1:pass} - except ${2:Exception}, ${3:e}: - ${4:raise $3} - finally: - ${5:pass} -snippet try Try/Except/Else/Finally - try: - ${1:pass} - except ${2:Exception}, ${3:e}: - ${4:raise $3} - else: - ${5:pass} - finally: - ${6:pass} -# if __name__ == '__main__': -snippet ifmain - if __name__ == '__main__': - ${1:main()} -# __magic__ -snippet _ - __${1:init}__${2} |
