nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f59f6c8
)
misc/vim: add option to disable omnifunc
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 28 Apr 2015 03:51:47 +0000
(23:51 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 28 Apr 2015 17:24:42 +0000
(13:24 -0400)
Fix #1300.
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
86d5e45
..
bb8dd13
100644
(file)
--- a/
misc/vim/plugin/nit.vim
+++ b/
misc/vim/plugin/nit.vim
@@
-382,8
+382,10
@@
fun NitGitGrep()
redraw!
endfun
-" Activate the omnifunc on Nit files
-autocmd FileType nit set omnifunc=NitOmnifunc
+if !exists("g:nit_disable_omnifunc") || !g:nit_disable_omnifunc
+ " Activate the omnifunc on Nit files
+ autocmd FileType nit set omnifunc=NitOmnifunc
+endif
" Define the user command Nitdoc for ease of use
command -nargs=* Nitdoc call Nitdoc("<args>")