CS - VIM

Vim
Published

July 22, 2026

Vim tips: plugin managers, commenting blocks in visual mode, and handy setup resources.

Plugin managers

Install Vim plugins through one of these managers.

Manager Note
Pathogen Runtime path manager; keeps each plugin in its own directory under bundle/.
Vundle Declares plugins in .vimrc and installs them with :PluginInstall.
vim-plug Minimal, fast, parallel plugin installer — in use.

See also: a good starting set in this post: 10 essential vim plugins for 2018.

Comment and uncomment a block

To uncomment

  1. Put the cursor on the first # character (or other comment operator).
  2. Press Ctrl + V to enter VISUAL BLOCK mode.
  3. Go down until the last commented line.
  4. Press x to delete the # characters down the column.

To comment

  1. Go to the first line you want to comment.
  2. Press Ctrl + V to enter VISUAL BLOCK mode.
  3. Select down until the last line.
  4. Press Shift + I to put the editor in INSERT mode.
  5. Press # to add a hash to the first line.
  6. Press Esc twice to insert a # on all other selected lines.

Resources

Resource Note
Vim-bootstrap Generates a ready-to-go .vimrc — very good!
How I boosted my Vim Experience post on boosting Vim’s capabilities.
Back to top