FS#19380 - [vim-runtime] update overwrites /etc/vimrc

Attached to Project: Arch Linux
Opened by Michal Svoboda (pht) - Friday, 07 May 2010, 06:48 GMT
Last edited by Dan Griffiths (Ghost1227) - Monday, 10 May 2010, 19:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan Griffiths (Ghost1227)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The heading of the /etc/vimrc file says:

" All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
" /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
" everytime an upgrade of the vim packages is performed.

I did just that - I modified my /etc/vimrc. But after todays update to vim-runtime 7.2.411-3, pacman said it is renaming my vimrc to vimrc.pacorig and /etc/vimrc got replaced by the stock one.

So where am I supposed to place my modifications?
This task depends upon

Closed by  Dan Griffiths (Ghost1227)
Monday, 10 May 2010, 19:54 GMT
Reason for closing:  Not a bug
Comment by Michal Svoboda (pht) - Monday, 10 May 2010, 11:11 GMT
  • Field changed: Percent Complete (100% → 0%)
I dont see how this is resolved?

The message STILL says "place your changes here", but they are lost on each upgrade.

Your suggestions are way off --

Merge old vimrc with new vimrc = tedious to do on each update.

Place customizations in $HOME = must be applied per-user.

Please provide for a PERSISTENT and SYSTEM-WIDE config file.

Comment by Karol Błażewicz (karol) - Monday, 10 May 2010, 11:21 GMT
> Please provide for a PERSISTENT and SYSTEM-WIDE config file.
I agree it would be a natural thing to do. I have only one user, so I keep my settings in $HOME, but some people are more adventurous.
Comment by Michal Svoboda (pht) - Monday, 10 May 2010, 12:21 GMT
Well you have at least 2 users (you and root)... and that's if you're the only guy who uses that machine.
Comment by Ionut Biru (wonder) - Monday, 10 May 2010, 19:45 GMT
guys, this issue exists only now after migrating from a single build package (vim) in which in the past the backup array was in vim and now is in vim-runtime. In the future this wouldn't appear at all.

I don't consider this to be a bug, is mostly a feature to not lose the configuration file. For now do mv /etc/vimrc.pacorig /etc/vimrc

Loading...