3 ms·
Fair points. After all, I know the keyboard shortcut to jump to the bottom (Ctrl-G).
by combatentropy 6y ago
Fair points. After all, I know the keyboard shortcut to jump to the bottom (Ctrl-G).
- teddyh 6y agoAccording to less(1), the key is: “G or > or ESC->”.
- combatentropy 6y agoSorry, I meant Shift-G. I can no longer edit that comment.
- coliveira 6y agoIn most keyboards Shift-G is the same as G, otherwise it would be g.
- combatentropy 6y agoHa ha, you're right, in a way. It depends on whether you take G to mean the figure on the keyboard or the figure on the screen. The figure on most keyboards is G. Yet when you press it, it puts on the screen, g. Chromebooks are better in this way. Their keyboards are labeled in lowercase. I actually went back and forth between saying Shift-G, or just G, for this very reason. So I erred on the side of clarity.
- Reelin 6y agoI thought the way you wrote it was clear but these comments got me curious what the various conventions might be so I took a quick look at :help in Vim (since it lists an awful lot of key bindings). I'm now officially confused and don't think you can go too far wrong. In some contexts :help notates things as characters (ex zh, zH, and z<CR>). In other cases I'm seeing things written as <S-F11> and <C-G>. There's also CTRL-H (instead of <C-H>) but I'm not seeing shift written out like that for whatever reason. Sometimes they get mixed (I'm not sure what the rules are) such as for hh<Space> and hh<C-]>. Amusingly enough, :help appears to treat Meta-{char} as case sensitive but CTRL-{char} as case insensitive (I assume there's a reason). I also spotted a <kPlus> (for the keypad). What an amusingly pointless distraction!
- devenblake 6y agoYou can also use the key on many keyboards labeled "End".