search and replace in vi vim

Quick tip:

Search and replace in vi
Search and replace in vim

:g/oldtext/s//newtext/

Comments

Post a Comment

Comments are moderated. No spam please.

Popular posts from this blog

Adobe Stand Alone Flash Player for Linux

Essential adb Command Examples

[Solved] invalid partition table on /dev/sda -- wrong signature 0.