> len(iconv(getline('.'),  &encoding, 'char'))
> 
> returns length of current line, but i need to get length of all lines from
> buffer start to current line. line2byte('.') does this.
> To workaround with this, i have to write cycle for each line. Imagine how
> long this cycle on Vimscript will work on large buffers.

If you want to know/see that number, I suggest

:set statusline+=%o

to see the byte offset and 'go' command to jump at that position

I'm sorry I don't know any solution for vimscript.

Milan

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