Asim
HUSANOVIĆ

Tag: vi

admin
VI editor
2012.07.01 17:59:23

Show all character:

:set list

Find and replace:

First occurrence on current line:

:s/OLD/NEW


Globally (all) on current line:

:s/OLD/NEW/g


Between two lines #,#:

:#,#s/OLD/NEW/g


Every occurrence in file:

:%s/OLD/NEW/g



Tags: vi | linux

Hits: 1077 | Read more...


 

IDOBlog - blog for joomla 1.5