diff options
author | 2021-12-01 17:40:27 +0100 | |
---|---|---|
committer | 2021-12-01 17:06:56 +0000 | |
commit | 74eaf6b7cbab24337eae5c07d42871aeb21a330e (patch) | |
tree | f90b80b1ce9a797bbe789290b215eefe93b0d552 /app-editors/vim-core/vim-core-8.2.3428.ebuild | |
parent | app-editors/vim: remove warning due to missing defaults.vim (diff) | |
download | gentoo-74eaf6b7cbab24337eae5c07d42871aeb21a330e.tar.gz gentoo-74eaf6b7cbab24337eae5c07d42871aeb21a330e.tar.bz2 gentoo-74eaf6b7cbab24337eae5c07d42871aeb21a330e.zip |
app-editors/vim-core: delete configs that conflict with vim[minimal]
Delete skip_defaults_vim config options from /etc/vimrc, to avoid
conflicts with vim[minimal].
Delete /usr/share/vim/vim82/defaults.vim, to avoid conflicts with
vim[minimal].
Signed-off-by: Dongsu Park <dpark@linux.microsoft.com>
Closes: https://github.com/gentoo/gentoo/pull/23115
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-editors/vim-core/vim-core-8.2.3428.ebuild')
-rw-r--r-- | app-editors/vim-core/vim-core-8.2.3428.ebuild | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app-editors/vim-core/vim-core-8.2.3428.ebuild b/app-editors/vim-core/vim-core-8.2.3428.ebuild index c52a926b699e..40e298a032ae 100644 --- a/app-editors/vim-core/vim-core-8.2.3428.ebuild +++ b/app-editors/vim-core/vim-core-8.2.3428.ebuild @@ -193,6 +193,9 @@ src_install() { rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed" rm -v "${ED}"/usr/bin/vimtutor || die "rm failed" + # Delete defaults.vim to avoid conflicts with one from vim[minimal] + rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed" + local keep_colors="default" ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim ) @@ -201,6 +204,9 @@ src_install() { keep_syntax="${keep_syntax}|syntax|nosyntax|synload" ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim ) + # Delete skip_defaults_vim config not supported by vim[minimal] + sed -i '/skip_defaults_vim/d' "${ED}"/etc/vim/vimrc || die "sed failed" + eshopts_pop fi |