How can I move around in the Vim command line?

后端 未结 7 1558
逝去的感伤
逝去的感伤 2020-12-12 12:36

If you\'re typing a command in Vim (I mean you\'ve started with : and you\'re working in the bar at the bottom of the screen) is there a way to move the cursor

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 13:03

    • ctrl+left arrow: move back a word
    • ctrl+right arrow - move forward a word
    • ctrl+b - back to the beginning of the line
    • ctrl+e - go to the end of the line
    • ctrl+w - remove one word before the cursor
    • ctrl+u - remove line
    • ctrl+f - if you need more editing power use ctrl+f and you will edit your command in normal mode. For example, if you want to move 5 characters to the left, use ctrl+f and then 5h.

提交回复
热议问题