Inserting at the end of a line in VIM

前端 未结 2 1260
你的背包
你的背包 2021-01-31 06:49

So for a long time I\'ve had a bad habit of going to the end of a line, hitting the i key and then hitting the right arrow to insert after that last character. Howeve

2条回答
  •  粉色の甜心
    2021-01-31 07:55

    Use A command instead of i. The command appends text at the end of the line. See :help A.


    In normal mode press A (uppercase). Vim will be switched to insert mode, and the cursor will be moved to the end of the current line ready for input.

提交回复
热议问题