app-editors/vim-core: place a system-vimrc autocommand in the right augroup

This makes it easier to revert the system vimrc (see prior commits) or
reload it and avoid duplicate autocommands.

While we're here, make the indentation and whitespace consistent with
the surrounding file.

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44504
Closes: https://github.com/gentoo/gentoo/pull/44504
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
D. Ben Knoble 2025-11-05 17:22:51 -05:00 committed by Sam James
parent 5a5ef85723
commit 5421e614e8
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -203,10 +203,10 @@ endif
" (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
autocmd gentoo Filetype *
\ if &omnifunc == "" |
\ setlocal omnifunc=syntaxcomplete#Complete |
\ endif
endif
" {{{ vimrc.local