On 25-May-2012 07:05:49 -0700 (PDT), Ben Fritz wrote:

> Will this break typing 1v to reselect an area equal to the last visual
> selection, but at the new cursor position?

Good catch, Ben! I use that (also with a count > 1) in some of my plugins, and I
also find it useful in interactive use, though mostly for characterwise mode.

Alternatively, we could offer a Vimscript implementation (maybe just for
linewise mode, which I find most useful) in vimrc_example.vim, so users can
choose whether to have this, and plugins aren't affected (when using :normal!).

    nnoremap <silent> V :<C-u>execute 'normal! V' . v:count1 . '_'<CR>

-- regards, ingo
-- 
  -- Ingo Karkat -- /^-- /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ --
  --      http://vim.sourceforge.net/account/profile.php?user_id=9713    --

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