Tuesday, November 30, 2010

How to find start/end of char-wise visual selection?

Hi, this is for Vim7.3.. Looking up docs for line(), it says that
arg='.' will give you cursor position, and 'v' will give you beginning
of visual selection when in visual mode, and '.' will give you the end
of it. For column, col() should be used, but there's no 'v' arg for it.

So, how can I do this? Let's say I have a char-wise selection from
column 10 to 20, how can I get numbers 10 and 20? -ak

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