]> Frank Brehm's Git Trees - config/berta/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Mon, 8 Jan 2018 14:31:02 +0000 (15:31 +0100)
committerFrank Brehm <frank@brehm-online.com>
Mon, 8 Jan 2018 14:31:02 +0000 (15:31 +0100)
vim/vimrc

index 7c789706c041e78af38e419e169836d3593544c5..8c2aede2b5eea106c053f45682ae923321850ed5 100644 (file)
--- 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