Thursday, February 25, 2010

Remove highlight after search in Vi

You can use :noh to disable highlight search temporarily (until your next search). To make turning off the highlights after a search a little quicker and convenient, add something like this to your ~/.vimrc:

nmap :silent noh

This will map Ctrl+N to :noh.

Taken from here

Thursday, February 18, 2010

Some Shell Commands

Enabling Line Numbers in Vi

:set number

command to turn them off:

:set nonumber

to tar gzip a file use

tar czvf MyProject.20090816.tgz MyProject

Setting the limits in Linux permanently app soft nofile   16384 * hard...