nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42ccc74
)
misc/vim: use case insensitive search for entity names
author
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 4 Mar 2015 02:47:05 +0000
(21:47 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 9 Mar 2015 17:56:33 +0000
(13:56 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
misc/vim/plugin/nit.vim
patch
|
blob
|
history
diff --git
a/misc/vim/plugin/nit.vim
b/misc/vim/plugin/nit.vim
index
b1b115b
..
a781d87
100644
(file)
--- a/
misc/vim/plugin/nit.vim
+++ b/
misc/vim/plugin/nit.vim
@@
-131,10
+131,10
@@
fun NitOmnifuncAddFromFile(base, matches, path)
if name == a:base
" Exact match
call NitOmnifuncAddAMatch(a:matches, words, name)
- elseif name =~ '^'.a:base
+ elseif name =~? '^'.a:base
" Common-prefix match
call NitOmnifuncAddAMatch(prefix_matches, words, name)
- elseif name =~ a:base
+ elseif name =~? a:base
" Substring match
call NitOmnifuncAddAMatch(substring_matches, words, name)
endif