If you’ve ever needed to jump quickly to the next commented line of code,
there’s a trick for that. You’ll need to add a new commands to Vim, but that’s
as easy as adding a few lines to your .vimrc file. The following maps
jump to the next commented line of code and
[c to the previous.
&cms (CoMment String) we can make this language agnostic, and it
should work in any file recognized.
Now inside a file such as this Ruby file, you can jump to the next commented
line by simply tapping
c in succession: