selfjungle Just another WordPress weblog

13Feb/110

vim delete lines with regexp, replace string

uzbl is an awesame ultralightweight browser, however gmail has cookie issues. The only way I found to have a working uzbl+gmail is to remove every line from .local/share/uzbl/cookies.txt which contain Google/google when the cookie problem happens.

With vim it's possible to look for STRING case insensitively and delete lines:

:g/\cSTRING/d

Also replace STRING1 to STRING2 in one line or in all lines.

:s/STRING1/STRING2/g
:%s/STRING1/STRING2/g
Tagged as: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

 

No trackbacks yet.