This tutorial explains how to comment and uncomment lines of code in the VIM editor.
How to comment and uncomment lines in the VIM editor
Follow the steps to comment on the lines in Vim or GVim editor.
- First, Go to the line on which you want to add a comment start
- use
Ctrl + v
in Vim andCtrl + q
in GVim editor to change to visual block mode - Next, go to the end line where comments to apply
- select c in the keyboard and add the comment symbol to the code that you are using
- This adds the comment to block of lines