How do I move to the next capital letter?

前端 未结 5 1142
庸人自扰
庸人自扰 2021-02-01 02:25

In vim I can use f followed by a character to go to the next occurrence of that character on the current line. For example, if I have the following (cursor position

5条回答
  •  时光说笑
    2021-02-01 02:27

    When I searched for that I would be happy to just have the "native" solution: just enter in command mode:

    /\u
    

    which stands for "search for an uppercase letter". After that just move between capital letters with n and N (shift + n).

提交回复
热议问题