From: Frank Brehm Date: Mon, 8 Jan 2018 14:31:02 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=316f8e6c6ca67c07720a1855326dce921152da65;p=config%2Fberta%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/vim/vimrc b/vim/vimrc index 7c78970..8c2aede 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