System: Linux
Multi-line Comments:
Go to command line mode--
Move the cursor to the first line where you want to comment-
Press CTRL + V to enter Visual block mode--
Press the letter J, or K (or move the key up or down) to select the line that needs to be commented--
Press the capital letter I to enter insert mode--
Enter a comment symbol, such as # # (you need to add a few columns to enter a few)--
Press the ESC key to annotate multiple lines.
To cancel a multiline comment (delete a comment):
Go to command line mode--
Move the cursor to the first column of the first row where you want to uncomment--
Press CTRL + V to enter Visual block mode--
Select the number of columns in the lowercase letter h or L to select the rows by the lowercase letter J or K (you can also use the upper and lower left and right move keys)-
Press the D key or the DELETE key to uncomment multiple lines.
VIM/VI editing tools for multi-line comments and uncomment