2011/7/22 Ben Schmidt <mail_ben_schmidt@yahoo.com.au>
Note that you can do a lot with the visual selection, too, and ExThanks a lot for all your comments!
For this particular purpose, the visual way is perfect.
However, I am still interested in the regex way, because that will allow me to do
other things with the paragraph and not only adding a char at the beginning.
commands with a range of '<,'> which means from the start to the end of
the visual selection. For instance, to do a substitution in the current
paragraph:
:normal vip
:'<,'>s/foo/bar
Very interesting.
I need to study about that, since I guess is not as easy as just ...
function Blah()
:normal vip
:'<,'>s/foo/bar
endfunction
--
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:
Post a Comment