From: Frank Brehm Date: Wed, 27 Dec 2017 18:00:14 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=9128f240f263cd3bda060bf6ce766dbfc5190fa6;p=config%2Fbruni%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/vim/vimrc b/vim/vimrc index 7c789706..8c2aede2 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -193,6 +193,17 @@ endif " has("autocmd") " instead: let g:skip_defaults_vim = 1 +" Enable Omni completion when opening a file only if a specific plugin does +" not already exist for that filetype. This allows Omni completion +" (Ctrl-x/Ctrl-o) to work with any programming language if and only if a syntax +" file exists for the said language. +if exists("+omnifunc") + autocmd Filetype * + \ if &omnifunc == "" | + \ setlocal omnifunc=syntaxcomplete#Complete | + \ endif +endif + " {{{ vimrc.local if filereadable("/etc/vim/vimrc.local") source /etc/vim/vimrc.local