Am 04.01.2013 22:22, schrieb Gary Johnson:
On 2013-01-04, martinwguy wrote:
On 4 January 2013 14:34, Andy Wokula wrote:
Am 03.01.2013 09:51, schrieb martinwguy:
Is it a bug that '\' after '-' in a collection is taken literally?
No, that's normal vi behaviour.
The context is Vim, not Vi:
     :set nocp cpo&vim

Er, I thought vim was a reimplementation of vi.

It is.  To a point.  See

     :help design-compatible
     :help vi-differences

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

Even with set 'cp', `\]' is still special.  See:
     :h cpo-\

Mmm, sorry, I don't know what :se cp/nocp is.

     :help 'cp'

Do you actually use Vi?

Hum, it sounds like you're putting your fists up. Bad sign.
Yes, since 1982 for all my work. I am also the maintainer for another
vi clone, "xvi".
Is that enough for you?

There are a couple of ways that question could be read.  I think
Andy meant it as, "Do you use vi and not Vim?", and I think you
took it as, "Do you know how to use vi?"

Yep, I meant the former.

Vim added the backslash for escaping within a collection, but it does so
inconsistently.  This has nothing to do with Vi.

--
Andy

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