VIM Stuff: Difference between revisions

From D3xt3r01.tk
Jump to navigationJump to search
New page: SO except regular use of vim like .. "open .. write/delete" in vim .. I know it's the only one that can do regular expressions search and replace .. here's how I did it I needed to replac...
 
mNo edit summary
 
(No difference)

Latest revision as of 21:11, 25 January 2012

SO except regular use of vim like .. "open .. write/delete" in vim .. I know it's the only one that can do regular expressions search and replace .. here's how I did it

I needed to replace limita_32K_32K to 10242_1 in my dhcpd.conf .. but only on the lines that contain 00:00:ca .. THANK GOD for VIM

:g/00:00:ca/s/limita_32K_32K/10242_1/

I'll post here any other useful thingies about it ..if I get to use them