mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-19 20:38:05 +01:00
fixed typo in Python snippet
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
snippet #!
|
snippet #!
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
snippet imp
|
||||||
|
import ${1:module}
|
||||||
# Module Docstring
|
# Module Docstring
|
||||||
snippet docs
|
snippet docs
|
||||||
'''
|
'''
|
||||||
@@ -27,9 +29,12 @@ snippet def
|
|||||||
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
||||||
"""${3:docstring for $1}"""
|
"""${3:docstring for $1}"""
|
||||||
${4:pass}
|
${4:pass}
|
||||||
|
snippet deff
|
||||||
|
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
||||||
|
${3}
|
||||||
# New Method
|
# New Method
|
||||||
snippet defs
|
snippet defs
|
||||||
def ${1:mname}(self, ${2:arg})):
|
def ${1:mname}(self, ${2:arg}):
|
||||||
${3:pass}
|
${3:pass}
|
||||||
# New Property
|
# New Property
|
||||||
snippet property
|
snippet property
|
||||||
@@ -39,8 +44,6 @@ snippet property
|
|||||||
${3:return self._$1}
|
${3:return self._$1}
|
||||||
def fset(self, value):
|
def fset(self, value):
|
||||||
${4:self._$1 = value}
|
${4:self._$1 = value}
|
||||||
|
|
||||||
# Self
|
|
||||||
snippet .
|
snippet .
|
||||||
self.
|
self.
|
||||||
snippet try Try/Except
|
snippet try Try/Except
|
||||||
|
|||||||
Reference in New Issue
Block a user