On Tuesday, 28 June 2011 13:57:37 UTC+2, Andy Wokula  wrote:
> Strange: one can't write a collection with range [X-Y] where Y is the
> character ']'.
> 
> I thought the following should work, but it doesn't:
>      /[@-\]]
>
> Is it a bug that '\' after '-' in a collection is taken literally?

No, that's normal vi behaviour. \ is not special in a character range (it 
stands for itself) and to include ] you need to specify it as the first 
character in the range. In the example you give
   /[]@-\]
(knowing that \ is the character previous to ])

   M

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui