Andy,
One thing I don't understand...
I changed my previous regex in menu.vim with your regex.
The regex works fine when I use the command line but doesn't work
when I put the regex in menu.vim:
an <silent> 9900.80 &Ray-view.Align\ Column\ Selection
:'<,'>s/\%V\(\s*\)\(.\{-}\)\%(\...@!\|$\)/\2\1/ <CR>:let @/ = ""<CR>
This doesn't work, when I select the same block and use the menu.
Do you know what can be the problem?
Regards,
Rameo
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