Skip to content

Instantly share code, notes, and snippets.

@thinca
Created May 19, 2009 17:48
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 thinca/114262 to your computer and use it in GitHub Desktop.
Save thinca/114262 to your computer and use it in GitHub Desktop.
Index: ku.vim
===================================================================
--- ku.vim (リビジョン 373)
+++ ku.vim (作業コピー)
@@ -612,8 +612,7 @@
if empty_pattern_p
" To skip unnecessary checkings in s:_omnifunc_compare_lists(),
" use the unique part of _.word which is matched to patterns.
- let asis_C_ms = substitute(_.word[(i):], re_acc_sep, ' ', 'g')
- let word = 0
+ let word = substitute(_.word[(i):], re_acc_sep, ' ', 'g')
else
" Skip many match()/matchend() callings by the following conditions:
" (a) If match() is failed for a pattern,
@@ -649,10 +648,10 @@
endif
let _['ku__sort_priorities'] = [
- \ get(_, 'ku__sort_priority', 0),
\ _.word =~# g:ku_common_junk_pattern,
\ source_junk_pattern is 0 ? 0 : _.word =~# source_junk_pattern,
\ asis_C_ms, asis_c_ms,
+ \ get(_, 'ku__sort_priority', 0),
\ word_C_ms, word_C_me, word_c_ms, word_c_me,
\ skip_C_ms, skip_C_me, skip_c_ms, skip_c_me,
\ word,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment