Quantcast
Channel: Automate find and replace - Vi and Vim Stack Exchange
Viewing all articles
Browse latest Browse all 2

Automate find and replace

$
0
0

When having selected something in visual mode where I want to perform a find-and-replace I always have to run :'<,'>s/foo/bar/g manually. Is there some way so that I can bind it to some key combination that I have to press whilst in visual mode, so that the command automatically appears with the cursor at s/[cursor here] and when I press tab the cursor jumps to s/foo/[jump here]?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images