VIM Stuff

From D3xt3r01.tk
Revision as of 21:11, 25 January 2012 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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