Pressing “Home” in Vim on an Indented Line

前端 未结 5 1237
不知归路
不知归路 2021-02-07 07:36

I have a bad habit of using the \'home\' key to go back to the beginning of a line. As I recently started using vim I noticed that when I press the home key on a lined that is i

5条回答
  •  离开以前
    2021-02-07 07:57

    You could also use _ in Normal mode to go to the first non-whitespace character of the current line. You can also use a count with this motion.

    _       [count] - 1 lines downward,
                        on the first non-blank character linewise.
    

提交回复
热议问题