Wednesday, June 6, 2007

Vim on Ubuntu

The following are items I commonly add to /etc/vim/vimrc config:

set tabstop=2
set shiftwidth=2
set expandtab
set visualbell t_vb=""
set nowrap

"key mappings
map <M-c> :tabprevious<CR>
map <M-v> :tabnext<CR>
map <M-n> :bn<CR>
map <M-,> :bp<CR>
map <M-k> :bd<CR>
map <M-;> :buffers<CR>


I'm a bit divided on having a global .vimrc file installed by default but have decided to roll with it. The above just captures settings that annoy me when I have to hunt them down on occasion for a new Ubuntu install.

Tip to pass on is that if you are learning to use Vim you should try to experiment/memorize one new feature a day.

The It's All Text Firefox addon allows you to edit Text Areas in forms with an external editor such as Vim. This extremely helpful if you are editing Wikis left and right.

No comments: