Monday, September 13, 2010

Re: Mark selection for replace

It can also be performed without using visual mode
1. mark the beginning line eg, ma
2. move cursor to the ending line of block intended.
3. substitute with range eg,
:'a,.s/foo/bar/g

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: