> 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.
Note that you can do a lot with the visual selection, too, and Ex
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
Ben.
--
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