GNOME Bugzilla – Bug 777453
Vim: gg after Shift-v inserts gg at the Current cursor rather than selecting upto the top
Last modified: 2017-01-18 19:48:00 UTC
Summary: In Visual mode using Ctrl+v , typing gg inserts literal gg on the cursor position , rather than selecting up to the top.
EDIT: Summary: In Visual mode using Shift+v , typing gg inserts literal gg on the cursor position , rather than selecting up to the top.
The issue in implementing this one "correctly" right now is that we need to wrap around the first line selected. The simple implementation of this today would end up losing the first selected line (and instead only select up until the previous line).
Created attachment 343743 [details] [review] vim: implement gg in visual line mode This is a bit of a hack, but it is sufficient until we have a real shortcut context as part of the keybindings improvements.
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.