Monday 1 December 2014

To comment out a block of lines in vi editor

============================================
    1. Enter visual block mode
        Command: ctrl+v
    2. Use the down arrow keys to select the lines you want
    3. Shift+i (capital I)
    4. insert the text you want, i.e. '//'
    5. Press ESC
============================================

1 comment: