Initial commit.
This commit is contained in:
2
vim/snippets/python/#!.snippet
Executable file
2
vim/snippets/python/#!.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env python
|
||||
# −*− coding: UTF−8 −*−
|
||||
2
vim/snippets/python/class.snippet
Executable file
2
vim/snippets/python/class.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
class ${1:``Snippet_PythonClassNameFromFilename()``}(${2:data}):
|
||||
${3}
|
||||
2
vim/snippets/python/class/basic.snippet
Executable file
2
vim/snippets/python/class/basic.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
class ${1:`Snippet_PythonClassNameFromFilename()`}(${2:data}):
|
||||
${3}
|
||||
1
vim/snippets/python/class/exception.snippet
Executable file
1
vim/snippets/python/class/exception.snippet
Executable file
@@ -0,0 +1 @@
|
||||
class ${1:ExceptionName}(${2:Exception}): pass
|
||||
3
vim/snippets/python/class/with_init.snippet
Executable file
3
vim/snippets/python/class/with_init.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
class ${1:`Snippet_PythonClassNameFromFilename()`}(${2:data}):
|
||||
def __init__(self, ${3:args}):
|
||||
${4}
|
||||
2
vim/snippets/python/def.snippet
Executable file
2
vim/snippets/python/def.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
def ${1:name}(${2:data}):
|
||||
${3}
|
||||
2
vim/snippets/python/for.snippet
Executable file
2
vim/snippets/python/for.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
for ${1:var} in ${2:type}:
|
||||
${3:pass}
|
||||
1
vim/snippets/python/from.snippet
Executable file
1
vim/snippets/python/from.snippet
Executable file
@@ -0,0 +1 @@
|
||||
from ${1:module} import ${2:name}
|
||||
2
vim/snippets/python/get.snippet
Executable file
2
vim/snippets/python/get.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
def get_${1:name}(self):
|
||||
return self._$1
|
||||
2
vim/snippets/python/if.snippet
Executable file
2
vim/snippets/python/if.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
if (${1:condition}):
|
||||
${2}
|
||||
4
vim/snippets/python/ife.snippet
Executable file
4
vim/snippets/python/ife.snippet
Executable file
@@ -0,0 +1,4 @@
|
||||
if (${1:condition}):
|
||||
${2}
|
||||
else:
|
||||
${3}
|
||||
2
vim/snippets/python/ifmain.snippet
Executable file
2
vim/snippets/python/ifmain.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
if __name__ == '__main__':
|
||||
${1}
|
||||
1
vim/snippets/python/import.snippet
Executable file
1
vim/snippets/python/import.snippet
Executable file
@@ -0,0 +1 @@
|
||||
import ${1:module}
|
||||
2
vim/snippets/python/init.snippet
Executable file
2
vim/snippets/python/init.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
def __init__(self, ${1:args}):
|
||||
${2}
|
||||
2
vim/snippets/python/set.snippet
Executable file
2
vim/snippets/python/set.snippet
Executable file
@@ -0,0 +1,2 @@
|
||||
def set_${1:name}(self, ${2:value}):
|
||||
${3}
|
||||
4
vim/snippets/python/try.snippet
Executable file
4
vim/snippets/python/try.snippet
Executable file
@@ -0,0 +1,4 @@
|
||||
try:
|
||||
${1}
|
||||
except ${2:Exception}:
|
||||
${3}
|
||||
Reference in New Issue
Block a user