Vim笔记

1
2
3
4
5
#插件commentary
gc #注释一行
gcc #注释一段
:7,17Commentary #注释7-17行

1
<cursor>Lorem ipsum dolor sit amet.

Type w((easymotion-w)) to trigger the word motion w. When the motion is triggered, the text is updated (no braces are actually added, the text is highlighted in red by default):

1
<cursor>Lorem {a}psum {b}olor {c}it {d}met.

Press c to jump to the beginning of the word "sit":

1
Lorem ipsum dolor <cursor>sit amet.

Similarly, if you're looking for an "o", you can use the f motion. Type fo, and all "o" characters are highlighted:

1
<cursor>L{a}rem ipsum d{b}l{c}r sit amet.

Press b to jump to the second "o":

1
Lorem ipsum d<cursor>olor sit amet.