diff options
| author | D. Ben Knoble <ben.knoble+github@gmail.com> | 2025-11-05 17:22:51 -0500 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-11-16 07:57:38 +0000 |
| commit | 5421e614e88a42e28234cdcb7e0b1d985bacbb5c (patch) | |
| tree | 0957acc23264988582255faa544aeb2e386ec1f9 /app-editors/vim-core/files | |
| parent | 5a5ef85723c7584cfe82afd2244ba8ec64bc60a9 (diff) | |
| download | gentoo-5421e614e88a42e28234cdcb7e0b1d985bacbb5c.tar.gz gentoo-5421e614e88a42e28234cdcb7e0b1d985bacbb5c.tar.bz2 gentoo-5421e614e88a42e28234cdcb7e0b1d985bacbb5c.zip | |
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>
Diffstat (limited to 'app-editors/vim-core/files')
| -rw-r--r-- | app-editors/vim-core/files/vimrc-r8 | 8 |
1 files 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 |
