Vim - how to start inserting at the end of the file in one step

后端 未结 5 1937
甜味超标
甜味超标 2021-02-01 00:48

Is there a single shortcut to start inserting in the new line at end of the file?

I\'m aware of G + o combo.

5条回答
  •  生来不讨喜
    2021-02-01 01:31

    Adding the following into ~/.vimrc will create one for you:

    :nmap ^A Go
    

    To type the "^A" first press Ctrl-V, then press Ctrl-A. You can then use Ctrl-A to append at the end of the file when not in insert or visual mode.

提交回复
热议问题