This one works great!
Thank you Andy.

Andy Wokula wrote:
Am 06.11.2010 10:36, schrieb rameo:
Andy,

I checked your regex but strange things happens when the column is the
one most at the right side.

> This is my column before using your command
>     :'<,'>s/\%V\(\s*\)\(.\{-}\)\...@!/\2\1/
x   3
x   7
x   9
x  2
x   6
x    8
x  19
x 20
x   1
x  19

> Result:
x   3
x   7
x   9
x  2
x   6
x 8
x  19
x 20
x   1
x  19

Ok.  The regexp can't match if a line ends within the Visual block.
Next try:

    :'<,'>s/\%V\(\s*\)\(.\{-}\)\%(\...@!\|$\)/\2\1/


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