On Fr, 07 Mai 2010, Benjamin R. Haskell wrote:
> :h col() calls the result the 'byte index', so it makes sense, but how
> would one get the character position?
:h virtcol('.')
(I actually wanted to give the hint for virtcol() in my first response.
I somehow forgot and used col(). Sorry for that uncertainty. BTW: If you
want the byte column when searching use \%c and for the virtcol use \%v,
see :h /\%c and :h /\%v)
regards,
Christian
--
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