vim is one of the greatest terminal based editors that is out there (though Stallman & Linus prefer Emacs)
it is capable of editing pretty large files, that would make other gui based editors crash
# Find each occurrence of 'foo' (in all lines), and replace it with 'bar'. :%s/foo/bar/g # Find each occurrence of 'foo' (in the current line only), and replace it with 'bar' :s/foo/bar/g # Change each 'foo' to 'bar', but ask for confirmation first :%s/foo/bar/gc
creditz: http://vim.wikia.com/wiki/Search_and_replace
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!