From 5421e614e88a42e28234cdcb7e0b1d985bacbb5c Mon Sep 17 00:00:00 2001 From: "D. Ben Knoble" Date: Wed, 5 Nov 2025 17:22:51 -0500 Subject: [PATCH] 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 Part-of: https://github.com/gentoo/gentoo/pull/44504 Closes: https://github.com/gentoo/gentoo/pull/44504 Signed-off-by: Sam James --- 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 150059c7e6028..c4abc23e74965 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