On 18/01/11 9:40 PM, björn wrote:
Hi,
I'm trying to figure out how to select a given range of characters.
Say I want to select characters 10-20. The following
10gov20go
will do the trick for 8 bit encoded files. The question is: how can I
make this work for all encodings (i.e. where 1 character != 1 byte)?
I suppose you could (roughly)
:set virtualedit+=onemore,whichwrap+=s
gg010<Space>v20<Space>
Not very elegant, though, and I bet it's slow once the numbers get big.
There's probably a better way.
Ben.
--
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