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

后端 未结 5 1947
甜味超标
甜味超标 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:14

    You could stick the map definition in your .vimrc and then invoke it when the you open the file.

    Or, if you only want to do this for a particular file, you could create an autocmd for that file type that does it automatically. See autocommand in the vim doc's.

提交回复
热议问题