If I want to get some character with negative index I get an empty string:
:let t=abc
:echo t[-2]
:echo t[-2]==
1
:echo t[-2:][0]
b
(zyx:~) % LANG=C vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Feb 12 2010 07:37:05)
Included patches: 1-303
Modified by Gentoo-7.2.303
Compiled by
Hi,
ZyX wrote:
If I want to get some character with negative index I get an empty string:
:let t=abc
:echo t[-2]
:echo t[-2]==
1
:echo t[-2:][0]
b
see
:help expr-[]
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that