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

Komentar

Postingan populer dari blog ini

EPrT English Proficiency Test Soal - soal

cara memunculkan dan menyembunyikan icon date, time, clock, volume, network, power battery, action center pada taskbar pada Windows 7

Cara Mengurus Perpanjang SIM dan Rincian Biaya di Lumajang.