app-editors/vim: remove warning due to missing defaults.vim

vim >= 8.2.3428 prints out a warning on missing file, when
it is built with USE="minimal" and `app-editors/vim-core` is not
installed.

```
$ vim
E1187: Failed to source defaults.vim
Press ENTER or type command to continue
```

To remove warning, explicitly install /usr/share/vim/vim82/defaults.vim.

Closes: https://bugs.gentoo.org/820356
Signed-off-by: Dongsu Park <dpark@linux.microsoft.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Dongsu Park
2021-11-29 16:59:03 +01:00
committed by Sam James
parent ecee0ed7ac
commit fc72192754
5 changed files with 30 additions and 0 deletions

View File

@@ -304,6 +304,12 @@ src_install() {
fperms a+x ${vimfiles}/macros/manpager.sh
fi
# Fix an issue of missing defaults.vim when USE=minimal.
if use minimal ; then
insinto ${vimfiles}
doins runtime/defaults.vim
fi
domenu runtime/vim.desktop
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}

View File

@@ -316,6 +316,12 @@ src_install() {
fperms a+x ${vimfiles}/macros/manpager.sh
fi
# Fix an issue of missing defaults.vim when USE=minimal.
if use minimal ; then
insinto ${vimfiles}
doins runtime/defaults.vim
fi
domenu runtime/vim.desktop
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}

View File

@@ -318,6 +318,12 @@ src_install() {
fperms a+x ${vimfiles}/macros/manpager.sh
fi
# Fix an issue of missing defaults.vim when USE=minimal.
if use minimal ; then
insinto ${vimfiles}
doins runtime/defaults.vim
fi
domenu runtime/vim.desktop
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}

View File

@@ -318,6 +318,12 @@ src_install() {
fperms a+x ${vimfiles}/macros/manpager.sh
fi
# Fix an issue of missing defaults.vim when USE=minimal.
if use minimal ; then
insinto ${vimfiles}
doins runtime/defaults.vim
fi
domenu runtime/vim.desktop
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}

View File

@@ -318,6 +318,12 @@ src_install() {
fperms a+x ${vimfiles}/macros/manpager.sh
fi
# Fix an issue of missing defaults.vim when USE=minimal.
if use minimal ; then
insinto ${vimfiles}
doins runtime/defaults.vim
fi
domenu runtime/vim.desktop
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}