Vim: Find and replace word

09.37 Muhamad Akbar Bin Widayat 0 Comments

vim logo
vim logo (Photo credit: Wikipedia)
Please follow me to find and replace word in vim.
1. without confirm and only one word to replace
:s/foo/bar/g
2. with confirm and all word to replace
:%s/foo/bar/gc


Hopefully this article is useful.
Enhanced by Zemanta

0 komentar:

terimakasih komentarnya