When I want the cursor to go to the end of the file (i.e. the end of the last line) in Vim, I have to type six keystrokes:
<ESC>G$a
- which translates to ESC + Shiftg + Shift4 + a on my keyboard layout.
How can I do this more efficiently?
Since I regularly work on many different machines, I cannot always change .vimrc, so I'm looking for answers without having to edit or create that file.
<esc>G$a
, you show the shift by making the letter uppercase. And you show a$
instead of shift + 4, since no matter the keyboard the function of this key ($
) won't change, but if you do shift + 4 then the meaning can change. :) – greduan$
is on a US keyboard, and it might well be that for Americans entering the command$
is just one keystroke. I wanted to explicitly show that for me (with a German keyboard) it is two keystrokes. – user1322720