Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583 - patch to vim-6.0-r4 to install a vimrc in /usr/share/vim instead of /etc/skel/.vimrc
Summary: patch to vim-6.0-r4 to install a vimrc in /usr/share/vim instead of /etc/skel...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-07 09:54 UTC by Naresh Donti
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Naresh Donti 2002-02-07 09:54:58 UTC
Vim by default looks for a vimrc file in $VIM, which is usually
$prefix/usr/share/vim.

The above patch fixes the ebuild so the vimrc from filesdir is copied here
instead of /etc/skel

patch follows:


***************
*** 186,197 ****
        cd $D/usr/share/doc/$PF
        ln -s ../../vim/*/doc $P
        # Default .vimrc for users (this should be revisited)
!       # insinto /etc/skel
!       # newins $FILESDIR/vimrc .vimrc
!       # this inserts the vimrc files where vim looks for it bye default,
!       # and not as /etc/skel/.vimrc
!       insinto /usr/share/vim
!       newins $FILESDIR/vimrc vimrc
        # Don't install .vimrc for root since it might overwrite root's
        # current .vimrc, if it exists.
        #mkdir -p $D/root
--- 186,193 ----
        cd $D/usr/share/doc/$PF
        ln -s ../../vim/*/doc $P
        # Default .vimrc for users (this should be revisited)
!       insinto /etc/skel
!       newins $FILESDIR/vimrc .vimrc
        # Don't install .vimrc for root since it might overwrite root's
        # current .vimrc, if it exists.
        #mkdir -p $D/root
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-02-07 10:58:29 UTC
agriffis: evaluate this one and apply if you think it's needed.
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2002-02-16 12:51:43 UTC
I've added app-editors/vim/vim-6.0-r5.ebuild in response to this bug.  Note the
following:

- The vimrc installed in /usr/share/vim is considerably stripped down, since I
hate when distributions attempt to guess how users/administrators want
applications configured.  If a site administrator wants to change this for their
own installation, that's fine, but I won't heavily customize the
distribution-supplied vimrc.

- I added a gvimrc as well, which is also intentionally spare.

Thanks for the suggestion.  I hope this solution meets your needs.

Thanks,
Aron