- /searchkey - search something
- :[range]s/search/replace/ - replace something within range
- :8,10 s/search/replace/g - replace something within range
- :%s/search/replace/g - replace something full document
- :%s/search/replace/gc. - prompt
Internet is vague. It has nothing left to be covered now. However, things get messed up sometimes and I forgot where I used to find the materials I had just searched for some days ago. So, I am now gathering all those into this blog. This is just my bookmark or my scrapbook or anything you wish to say. If you think these are helpful, you can take references, no any rights to be defined here. No styles and no colorful designs, just an area to jot down some scraps and all. Enjoy
Pages
Friday, July 16, 2010
VIM Editor - Search and Replace
Labels:
bash shell,
HowTO,
Linux,
Tips and Tricks,
vi,
VI Editor,
vim
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment