Vim: move around quickly inside of long line

后端 未结 8 561
轻奢々
轻奢々 2020-12-22 18:50

I have word-wrap enabled and tend to have quite long lines. But moving around inside a line that\'s actually 4 lines high with \"w\" is cumbersome. I keep using / to jump to

8条回答
  •  隐瞒了意图╮
    2020-12-22 19:18

    You can use ( and ) to navigate by sentence; it just looks for ., but that can be immensely helpful, especially if you don't like the sentence and want to change it: (c) will jump to the beginning of the current sentence, then change the entire sentence.

    You can also use w and e, with count modifiers, to move words. 3w will move three words at a time.

    You can also use f and F to search forward and backwards for a specific character. This is much more useful if you're looking for the word quite or syzygy than the. :)

提交回复
热议问题