Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Fixes error using 'm' snippet where 'M' is also defined
diff --git a/autoload/snipMate.vim b/autoload/snipMate.vim
index 76fe56b..8f0ebce 100644
--- a/autoload/snipMate.vim
+++ b/autoload/snipMate.vim
@@ -748,7 +748,7 @@ fun! snipMate#GetSnippetsForWordBelowCursor(word, suffix, break_on_first_match)
for [k,snippetD] in items(funcref#Call(s:snipMate['get_snippets'], [snipMate#ScopesByFile(), wor
if a:suffix == ''
" hack: require exact match
- if k != word | continue | endif
+ if k !=# word | continue | endif
call add(matching_snippets, [k, snippetD])
if a:break_on_first_match | break| endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment