Hi,

On Thu, Nov 12, 2020 at 1:43 PM lacygoill <[email protected]> wrote:

> Also, while it's true that <cmd> can replace :<C-U> in visual mode, in
> practice, you'll probably want to press <esc> before, so that the visual
> marks are set; at least, if your code refers to the visual marks. That was
> done automatically with :<C-U>, but not with <cmd>. Again, it might be
> useful to document this.
>
>
> In the visual mode, you can use [line('v'), col('v')] and [line('.'),
col('.')] to get the starting
and ending cursor position of the visually selected text without leaving
visual mode.
For example, you can use the following map:

     vnoremap <F3> <Cmd>echo [col('v'), col('.')]<CR>

You can visually select some text and press <F3> to echo the column numbers
without leaving visual mode.

- Yegappan

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7kBrs%3D9CFF%3DzyXsE8yoH3K52_4HtFbtQsK%2BcK51Bxjvpg%40mail.gmail.com.

Raspunde prin e-mail lui