terminal:editors:vim
Table of Contents
Vim
Configured via ~/.vimrc. Key settings:
Formatting
- 2-space tabs (
expandtab,tabstop=2,shiftwidth=2) - Line wrap at 78 chars (
textwidth=78) - Auto-indent on
Display
- 256-color, dark background,
elflordcolorscheme - Line numbers, cursor position in status bar
- Trailing whitespace highlighted red
Search
- Incremental + highlighted search
- Case-insensitive unless uppercase used (
smartcase)
Key Bindings
| Binding | Action |
|---|---|
<leader>w | Save |
<leader>q | Quit |
<leader>x | Save and quit |
<leader><space> | Clear search highlight |
F2 | Toggle paste mode |
Gophermap Special Case
.vimrc detects gophermap filenames and sets noexpandtab — gophermaps require real tab characters.
See Also
terminal/editors/vim.txt · Last modified: by 127.0.0.1
