diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-29 11:22:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-29 11:22:34 +0000 |
commit | bd7908c6630f38067350d396ac5d18c3cc2434a0 (patch) | |
tree | 3559b3e11424f5529527f2474d8a977a91ee3389 /app-editors/vim-core/files | |
parent | 8b2628ad8526c806375e7b157889e4274b70248b (diff) |
gentoo resync : 29.10.2017
Diffstat (limited to 'app-editors/vim-core/files')
-rw-r--r-- | app-editors/vim-core/files/vimrc-r5 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-editors/vim-core/files/vimrc-r5 b/app-editors/vim-core/files/vimrc-r5 index 3386b6c54ba0..2409822e628c 100644 --- a/app-editors/vim-core/files/vimrc-r5 +++ b/app-editors/vim-core/files/vimrc-r5 @@ -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("@GENTOO_PORTAGE_EPREFIX@/etc/vim/vimrc.local") source @GENTOO_PORTAGE_EPREFIX@/etc/vim/vimrc.local |