Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#9037 - vim sticks example configuration in place for global configuration
Attached to Project:
Arch Linux
Opened by Magnus Therning (magus) - Friday, 28 December 2007, 17:45 GMT
Last edited by Tobias Kieslich (tobias) - Thursday, 07 February 2008, 20:27 GMT
Opened by Magnus Therning (magus) - Friday, 28 December 2007, 17:45 GMT
Last edited by Tobias Kieslich (tobias) - Thursday, 07 February 2008, 20:27 GMT
|
DetailsDescription:
Package vim puts an example configuration file in /etc/virc. Its existance is /very/ irritating due to the load order of configuration files in vim; it's loaded /after/ the user's own configuration. Additional info: extra/vim 7.1.156-1 Steps to reproduce: Install the package |
This task depends upon
Closed by Tobias Kieslich (tobias)
Thursday, 07 February 2008, 20:27 GMT
Reason for closing: Not a bug
Additional comments about closing: not in vim anyway
Thursday, 07 February 2008, 20:27 GMT
Reason for closing: Not a bug
Additional comments about closing: not in vim anyway
/etc/vimrc is explicitely treated as systemwide vimrc (see output of vim --version) so vim will always treat ~/.vimrc with higher priority.
Yes, the file we install there is an example file, but the settings reflect the recommendation from the upstream author AND make vim more usable out of the box.
FS#9038which is the same but for vi.cp /usr/share/vim/vimrc_example.vim ~/.vimrc
added set background=dark to .vimrc
This didn't have any effect.
:set background=dark from within vim did.
After seeing this bug report I edited /etc/virc with set background=dark
This worked.
After a bit of playing round I realised that if I renamed my .vimrc to .virc it works.
This creates a problem though. Vim doesn't provided syntax highlighting for .virc only .vimrc.
vi --version shows the problem (these two lines of output show the problem);
system vimrc file: "/etc/virc"
user vimrc file: "$HOME/.virc"
Surely these should be set to vimrc not virc. Vi and Vim are two different programs. The root of the bug perhaps?
Hope this was helpful. First time I've filed a bug report. Let me know if I've screwed up in any way.
Thanks for your time :)
The confusion arises when installing arch. The vi editor is downloaded in the base packages. Later on however you are given the option of using either nano or VIM! This is slightly misleading as it led me to believe I had installed vim on my system.
This confusion is compounded by the vim configuration files that are also installed. Though I suppose the fact I had to call vi to use vim should have given me a clue! :(
Perhaps it is usual to have the vim configuration files for use with vi? I think the next release of the Arch installer needs to be more clear though. Should I file bug report in this regard?
Sorry for wasting your time.
Thanks again.
vi vim and gvim are split up this way to have a clear distinction between the functionality AND have the runtime served by only one package.
since the vi package is not as capable (no highlight etc), we need clear distinction for the config files since vi errors out on uknown more sophisticated config values.
I think it is just fair to rename the file in the installer.
FS#9249.Thanks again guys :)