On 26 мар, 15:28, Jürgen Krämer <jottka...@googlemail.com> wrote:
> High
>
> Maxim Kim wrote:
>
> > Is there a way one can get visual selection width without corrupting
> > registers?
>
> > Say I have 'dummy text' visually selected.
>
> > Using registers I can find the length by using:
>
> > y
> > echo len(getreg('"'))
>
> > I thought strpart with col('`<') and col('`>') would work but it
> > doesn't as col('`<') returns 0.
>
> you must use the non-backtick mark for col()
>
>   echo col("'<")

Thanks!

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

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to