Created
July 18, 2010 08:25
-
-
Save mmisono/480233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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