From 068c113d04f5292c189864e9aa555ba8366a4854 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 27 Apr 2015 23:51:47 -0400 Subject: [PATCH] misc/vim: add option to disable omnifunc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix #1300. Signed-off-by: Alexis Laferrière --- misc/vim/plugin/nit.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/vim/plugin/nit.vim b/misc/vim/plugin/nit.vim index 86d5e45..bb8dd13 100644 --- 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("") -- 1.7.9.5