Tuesday, April 22, 2008

Giving power to vim - 1

To use vim efficiently and effectively we need to do some settings.

Open vimrc file. Its normally under HOME directory and hidden. On ubuntu
gedit ~/.vimrc will open it in gedit .

Add Following in to it:

1. Keeping History : Vim only remembers the last 20 commands and search patterns entered.
set history 1000

2. To show line numbers : set nu

3. To show syntax highlighting : set syntax on

4. To show menu with possible tab completions : set

5. To set background : set background=dark

6. To set terminal title to filename : set title

No comments:

Post a Comment