1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-18 03:50:30 +01:00

Added pmx specific stuff

This commit is contained in:
2012-03-19 21:45:52 +01:00
parent 7cbe6dca6d
commit 37c7794c40
10 changed files with 556 additions and 12 deletions

View File

@@ -22,3 +22,7 @@ snippet ~
­
snippet ...
snippet fn
`expand("%")`
snippet fp
`expand("%:p")`

View File

@@ -5,11 +5,11 @@ snippet imp
import ${1:module}
# Module Docstring
snippet docs
'''
"""
File: ${1:`Filename('$1.py', 'foo.py')`}
Author: ${2:`g:snips_author`}
Description: ${3}
'''
"""
snippet wh
while ${1:condition}:
${2:# code...}
@@ -19,7 +19,9 @@ snippet for
# New Class
snippet cl
class ${1:ClassName}(${2:object}):
"""${3:docstring for $1}"""
"""
${3:docstring for $1}
"""
def __init__(self, ${4:arg}):
${5:super($1, self).__init__()}
self.$4 = $4
@@ -27,7 +29,9 @@ snippet cl
# New Function
snippet def
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
"""${3:docstring for $1}"""
"""
${3:docstring for $1}
"""
${4:pass}
snippet deff
def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
@@ -106,9 +110,11 @@ snippet docmodule
"""
snippet debug
LOG.debug(self.${1:method_name}.__doc__.strip())
snippet pywin
import pywin.debugger; pywin.debugger.set_trace()
snippet edbg
import sys
pydevdPath = r"/mnt/data/IDE/eclipse/plugins/org.python.pydev.debug_1.6.5.2011020317/pysrc"
pydevdPath = r"/home/share/data/IDE/eclipse/plugins/org.python.pydev.debug_1.6.5.2011020317/pysrc"
if not pydevdPath in sys.path:
sys.path.append(pydevdPath)
import pydevd