Vim: Find and replace word

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

Comments

Popular posts from this blog

Riset Kebutuhan & Jasa Pembuatan Website UMKM (Riset Lapangan Jakarta Barat)

5 Nilai Inti (GCG) Wajib Sebelum Merancang Produk Digital

Kesalahan Pindah Blogspot ke Domain Pribadi Berujung Domain Blogspot Lenyap