commit:     5421e614e88a42e28234cdcb7e0b1d985bacbb5c
Author:     D. Ben Knoble <ben.knoble+github <AT> gmail <DOT> com>
AuthorDate: Wed Nov  5 22:22:51 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 16 07:57:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5421e614

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 <AT> 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 <AT> gentoo.org>

 app-editors/vim-core/files/vimrc-r8 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app-editors/vim-core/files/vimrc-r8 
b/app-editors/vim-core/files/vimrc-r8
index 150059c7e602..c4abc23e7496 100644
--- a/app-editors/vim-core/files/vimrc-r8
+++ b/app-editors/vim-core/files/vimrc-r8
@@ -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

Reply via email to