CS - VIM
Vim
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.
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. |
Comment and uncomment a block
To uncomment
#character (or other comment operator).Ctrl + Vto enter VISUAL BLOCK mode.xto delete the#characters down the column.To comment
Ctrl + Vto enter VISUAL BLOCK mode.Shift + Ito put the editor in INSERT mode.#to add a hash to the first line.Esctwice to insert a#on all other selected lines.