2012年9月27日 星期四

[vim][Linux] How to find and replace by using vim

[vim][Linux] How to find and replace by using vim 

:%s/awesome/wonderful/gc

replace with wonderful (y/n/a/q/l/^E/^Y)?

If string is /var/tmp/ and want to change like /var/tmp/media/.

The command like below.
%s/\/var\/tmp/\/var\/tmp\/media/gc

Reference :




Related Posts:

0 意見:

張貼留言