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 none of it has tried to contact us.     (Calvin)

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

To unsubscribe, reply using "remove me" as the subject.

Raspunde prin e-mail lui