A useful Vim configuration should make editing predictable. If opening .vimrc feels like debugging a distributed system, the configuration has won and you have lost.
Plugin management
Install vim-plug, then keep the plugin list short:
1 | call plug#begin('~/.vim/plugged') |
Run :PlugInstall inside Vim.
Practical defaults
1 | set number |
Use non-recursive mappings such as nnoremap unless recursive behavior is intentional. Set shiftwidth together with tabstop; otherwise indentation commands and displayed tab widths can disagree, which is a tiny argument between Vim and itself.
Keep it portable
Track .vimrc in a dotfiles repository, but keep machine-specific paths and secrets outside it. Add plugins only when a recurring problem exists. Configuration is a tool, not a hobby—unless the hobby is configuring Vim, in which case no article can save us.