Sunday, January 13, 2013

22 - Comment out all line in the file at once with vim editor

If you want to comment out all (some) lines in your file, you can use the following recipe:

1. press ctrl+v  and select the lines
2. press I for all highlighted lines
3. type # (for shell script) of ! (for .f90 files)
4. press Esc
5. press Esc

No comments:

Post a Comment