Lev Lvovsky wrote:
. how do I do regular expression searches in a blockwise visual
selection? specifically, if i'm looking to change something at the
end of the block, say for example, replace all trailing whitespace
with a ',' I can't do the following:
:'<,'>s/ *$/,/
because it'll act on the whole line outside of the block
The vis.vim plugin supports this; in fact, it supports the application
of any command-mode command to a visual block.
For an example of that, considering filtering a visual block (eg. with
sort).
You can get the latest vis.vim from
http://mysite.verizon.net/astronaut/vim/index.html#VIS
or a more stable version from:
http://vim.sourceforge.net/scripts/script.php?script_id=1195
Regards,
Chip Campbell