Removed a wrong TODO and fixed a mapping

This commit is contained in:
Holger Rapp 2009-07-04 16:13:51 +02:00
parent bf35ed08fb
commit b5a2e14c32
3 changed files with 22 additions and 4 deletions

View File

@ -1,5 +1,26 @@
###########################################################################
# MY OWN SNIPPETS #
###########################################################################
snippet db
debug("${1/(\w+)(, *)?/$1: %s(?2:, )/g}" % (${1:args}))
$0
endsnippet
###########################################################################
# TEXTMATE SNIPPETS #
###########################################################################
snippet ifmain "ifmain"
if __name__ == '__main__':
${1:main()}$0
endsnippet
##########################
# Try / Except / Finally #
##########################
snippet try "Try / Except"
try:
${1:pass}
except ${2:Exception}, ${3:e}:
${4:raise $3}
endsnippet

View File

@ -590,7 +590,6 @@ class Snippet(object):
else:
vim.current.window.cursor = s.end.line + 1, s.end.col
class Cursor(object):
def __init__(self):
self._abs_pos = None

View File

@ -60,9 +60,7 @@ EOF
inoremap <Tab> <C-R>=PyVimSnips_ExpandSnippet()<cr>
snoremap <Tab> <Esc>:call PyVimSnips_ExpandSnippet()<cr>
inoremap <S-Tab> <C-R>=PyVimSnips_JumpBackwards()<cr>
snoremap <S-Tab>+ <Esc>:call PyVimSnips_JumpBackwards()<cr>
" TODO: the next two are only needed for testing
snoremap <S-Tab> <Esc>:call PyVimSnips_JumpBackwards()<cr>
au CursorMovedI * py PySnipSnippets.cursor_moved()
au InsertEnter * py PySnipSnippets.entered_insert_mode()