Wednesday, October 31, 2012

Re: re-selecting block in different buffer

On 06:03 Wed 31 Oct , Tim Chase wrote:
> On 10/30/12 12:32, Ben Fritz wrote:
> > Vim remembers the previous mode though, and while it might not be
> > accessible, you can select the same area and mode in a different
> > place by using 1v. The help on this is a little hard to find, it
> > does not have its own topic, it is right above :help v_<Esc>.
>
> This must have been added more recently than the 7.2 that Debian
> Stable gives me by default. But it sounds like an interesting feature.
>
> -tim
>
>
>
> --
> 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

Indeed it is a nice feature. But it doesn't remember the are when
escaping the visual mode (with <esc> or <c-c>). I've asked about it on
vim_dev, and I got an answer that this rather will not be changed in vim
(since it may break some plugins) but there is a workaround:

vnoremap <Esc> g?gvg?

Best,
Marcin

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