Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36673 - /etc/vim/gvimrc is too strong
Summary: /etc/vim/gvimrc is too strong
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-28 11:20 UTC by Duraid Madina
Modified: 2004-01-22 08:28 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 Duraid Madina 2003-12-28 11:20:18 UTC
/etc/vim/gvimrc unexpectedly clobbers users own preferences (in their ~/.vimrc, ~/.gvimrc files) for the gvim editor.

It would be nice to remove at least the line:

set columns=130 lines=50       " don't inherit geometry from parent term

if not the entire file.


Reproducible: Always
Steps to Reproduce:
1. Attempt configuring gvimrc by using config files in your home directory
2. Certain settings will be clobbered by files in /etc/vim
3. There's no way out unless you have root, right?
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-01-06 07:32:06 UTC
I don't know where you get "set columns=130 lines=50" since the Gentoo gvimrc has "set columns=80 lines=30".

There are only four settings in the Gentoo gvimrc, all of which set sensible defaults and can easily be overridden by users in their personal .gvimrc.  I just tested in my own .gvimrc to make sure.

The files are read in this order:
   /etc/vim/vimrc
   $HOME/.vimrc
   /etc/vim/gvimrc  (when called as gvim)
   $HOME/.gvimrc    (when called as gvim)
Comment 2 Kurt Hindenburg 2004-01-22 08:28:07 UTC
I was confused also about my /etc/vim/gvimrc over-riden my .vimrc.  I had put the guifont in .vimrc.  Now I need another file in my home-dir .gvimrc.  I think the text of /etc/vim/gvimrc should be changed to reflect this.

This is a little confusing...

" This file is read AFTER normal Vim initializations, like reading your .vimrc
" file (and the default /usr/share/vim/vimrc).  So there's no reason to
" duplicate settings from vimrc.  Red Hat has had this wrong for years, to the
" great annoyance of users.