On 31-Oct-2012 20:43:19 +0100, ZyX wrote:
>> g?gvg? is really nice, I'll give it a try. I tested it over digraphs,
>> and it works.
>
> You can also use
>
> :<C-u><Esc>
> . Unlike g? workaround it alters neither undo nor command history.
Great input, ZyX! For me, it even works without the <C-u>, just :<Esc>. Though
this looks like a bug to me: I would understand that a no-op command like
:<C-u>echo<CR> would be treated as a modification, but an aborted command
definitely does not count as a modification; it also isn't added to the history.
I guess this special behavior is just a side effect of a simple implementation
that doesn't take command aborts into account.
The more I learn about it, the more I would prefer that {count}v _always_ uses
the previous selection (as proposed here again), modification yes or no. But I
guess we would need more vocal support to sway Bram, so please speak up! (Or
voice your concerns if you happen to know someone/thing that relies on the
current behavior.)
-- regards, ingo
--
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