This tutorial explains about how to comment and uncomment lines of a code in VIM editor

How to comment and uncomment lines in VIM editor

Follow are the steps to comment the lines in Vim or GVim editor

  • First, Go the line on which you want to add comment start
  • use Ctrl + v in Vim and Ctrl + q in GVim editor to change to visual block mode
  • Next, go to the end line where comments to apply
  • select c in keyboard and add the comment symbol to the code that you are using
  • This adds the comment to block of lines