|
/Admin/commandLine:
Search and Replace with VI
This seems to be really easy to forget:
:%s/old-string/new-string/g
will replace every occurance of old-string in the file with new-string. You can of course do more complicated things[1].
[1] http://www.cyberciti.biz/faq/vi-vim-editor-search-and-replace-howto/
posted at: 06:00 | path: /Admin/commandLine | permanent link to this entry