本文翻译自:Move cursor to end of file in vim
When I want the cursor to go to the end of the file (ie the end of the last line) in Vim, I have to type six keystrokes: 当我希望光标在Vim中转到文件的末尾(即最后一行的末尾)时,我必须输入六个键击:
<ESC>G$a
- which translates to ESC + Shift g + Shift 4 + a on my keyboard layout. <ESC>G$a
- 在我的键盘布局上转换为ESC + Shift g + Shift 4 + a 。
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. 由于我经常在许多不同的机器上工作,我不能总是改变.vim