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
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
|
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
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.
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.
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