In VIM, at the moment when I need to comment out a section of Ruby code:
I will recommend you an alternative way to comment using by Macro
The first, just put this in to your .vimrc
let @c="I#\ej"
let @u="^xj"
For the example
To comment 12 lines:
12@c
on command mode to comment 12 linesTo uncomment 12 lines:
12@u
on command mode to uncomment 12 linesThe conclusion
Commenting:
[quantifier]@c
Uncommenting:
[quantifier]@u
note: These commands will start commenting/uncommenting from your current line.
Additional:
To improve you nevigation number.vim
can help you a lot about quantifier number.
https://github.com/myusuf3/numbers.vim