How do I add the comment character ‘#’ to a set of lines at the

beginning of each line? First, select the first character in all the lines using visual block mode (CTRL-V). Press ‘I’ to start inserting characters at the beginning of the line. Enter the comment character and then stop the insert mode by pressing <Esc>. Vim will automatically insert the entered characters at the beginning of all the selected lines.

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind