Skip to content

Instantly share code, notes, and snippets.

@asivitz
Created January 10, 2012 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asivitz/1591857 to your computer and use it in GitHub Desktop.
Save asivitz/1591857 to your computer and use it in GitHub Desktop.
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
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