BxLUG groupe des utilisateurs de GNU/Linux de Bruxelles

Espace membres

Installing and using VIM

When installing a Debian Woody, VIM is not installed by default. As I find it far superior to its rivals, I usually install it and activate some features I love and which nobody should live without.

# apt-get install vim
I suppress nvi, because I'd never use it:
# apt-get remove --purge nvi
It may seem better to modify the file /etc/vim/vimrc as the comment says to activate syntax highlighting [1]:
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on

However, on each VIM package upgrade, it would ask if you prefer to keep the current configuration or apply the new one, where you should always ask to replace to the new one. You would then need to reconfigure it on each upgrade.

The alternative is to add the right configuration to each willing user (which should be everybody). You just need to add him a .vimrc file in his home directory or add a line like this to his existing .vimrc:
syntax on

To do this, you will need to go into each home directory, and/or add a .vimrc file in /etc/skel so that each newly-created user  [2] has automatically the file in his new home.

I also install the support for a lot of other fileformats syntax:
# apt-get install exuberant-ctags

[1] I removed the " at the beginning of the line syntax on

[2] those created with adduser or at least using this «skeleton»

Bienvenue dans le monde du libre