]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Wed, 27 Dec 2017 18:00:14 +0000 (19:00 +0100)
committerFrank Brehm <frank@brehm-online.com>
Wed, 27 Dec 2017 18:00:14 +0000 (19:00 +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