Permalink
Browse files

Fix ultisnips.

  • Loading branch information...
Rip-Rip committed Mar 6, 2013
1 parent d96a2bf commit e21dd0f1c32e81404bd8f316f6953f27484a0b3a
Showing with 4 additions and 2 deletions.
  1. +4 −2 plugin/snippets/ultisnips.py
@@ -1,5 +1,6 @@
import vim
import re
from UltiSnips import UltiSnips_Manager
ultisnips_idx = 0
@@ -8,8 +9,9 @@ def snippetsInit():
def snippetsFormatPlaceHolder(word):
# Better way to do that?
ultisnips_idx++
return '${%d:%s}' % ultisnips_idx, word
global ultisnips_idx
ultisnips_idx += 1
return '${%d:%s}' % (ultisnips_idx, word)
def snippetsAddSnippet(fullname, word):
ultisnips_idx = 0

0 comments on commit e21dd0f

Please sign in to comment.