Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Thursday, February 26, 2015

Things about vim

Find replace

Show line numbers

:set number

Replace using ranges

Insert # at begin of line from line 1 to 10
:1,10s/^/#

Find each occurrence on each line and replace

:%s/find/replace

e.g:
:%s/^0/27

Find each line starting with 0, and replace the zero with 27

Sort, removing duplicates

:sort u

Monday, November 23, 2009

xkill

alt-f2 xkill

killing those nasty applications that i make...