2011/7/22 Ben Schmidt <[email protected]>

> Thanks 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.
>>
>
> 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
>



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

Reply via email to