Saturday, July 30, 2011

Re: A modern look for gvim (win32)

Hi Ben!

On Fr, 29 Jul 2011, Ben Fritz wrote:

> > s = 'hello'
> > s[2]   # l
> > s[-2:] # lo
> > s[1:2] # el

> Agree, these would be nice to have. There's strpart() but it can be
> awkward to use.

That works in Vim as well:
:h expr8

Agreed, indexing on bytes has its own disadvantages, so I usually don't
use it...


regards,
Christian
--
Ich bin der Wahrheit verpflichtet, wie ich sie jeden Tag erkenne, und
nicht der Beständigkeit.
-- Mahatma Gandhi

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

No comments:

Post a Comment