1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-22 14:08:01 +01:00

added fix for more special characters (., ^, and $) in snippet triggers

This commit is contained in:
Michael Sanders
2009-03-01 16:40:36 -05:00
parent f6a9e90da6
commit 8f31a3b9bf

View File

@@ -126,7 +126,7 @@ fun! TriggerSnippet()
return unl s:snippet return unl s:snippet
endif endif
let col = col('.')-len(word) let col = col('.')-len(word)
sil exe 's/'.escape(word, '/\*[]').'\%#//' sil exe 's/'.escape(word, '.^$/\*[]').'\%#//'
return s:ExpandSnippet(col) return s:ExpandSnippet(col)
elseif exists('s:snipPos') elseif exists('s:snipPos')
return s:JumpTabStop() return s:JumpTabStop()