Skip to content

Instantly share code, notes, and snippets.

@mmisono
Created July 18, 2010 08:25
Show Gist options
  • Save mmisono/480233 to your computer and use it in GitHub Desktop.
Save mmisono/480233 to your computer and use it in GitHub Desktop.
--- snippets_complete.vim 2010-07-18 16:18:10.000000000 +0900
+++ snippets_complete.vim.orig 2010-07-18 16:20:48.000000000 +0900
@@ -178,14 +178,9 @@
endfor
endif
- if has_key(l:snippets, matchstr(s:get_cur_text(), neocomplcache#get_keyword_pattern_end()))
- \ || has_key(l:snippets, matchstr(s:get_cur_text(), '\S\+$'))
- return 1
- elseif search('\${\d\+\%(:.\{-}\)\?\\\@<!}\|\$<\d\+\%(:.\{-}\)\?\\\@<!>', 'w') > 0
- return 2
- else
- return 0
- endif
+ return has_key(l:snippets, matchstr(s:get_cur_text(), neocomplcache#get_keyword_pattern_end()))
+ \ || has_key(l:snippets, matchstr(s:get_cur_text(), '\S\+$'))
+ \ || search('\${\d\+\%(:.\{-}\)\?\\\@<!}\|\$<\d\+\%(:.\{-}\)\?\\\@<!>', 'w') > 0
endfunction"}}}
function! s:caching()"{{{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment