Skip to content

VI text editor

commands in Command mode:

From: https://coderwall.com/p/adv71w/basic-vim-commands-for-getting-started

Common tasks

Comment multiple lines

From: https://stackoverflow.com/questions/1676632/whats-a-quick-way-to-comment-uncomment-lines-in-vim

To comment out blocks in vim: * press Esc (to leave editing or other mode) * hit ctrl + v (visual block mode) * use the up/down arrow keys to select lines you want (it won't highlight everything - it's OK!) * Shift + i (capital I) * insert the text you want, i.e. '% ' * press Esc.