====== 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, ''elflord'' colorscheme * 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 ^ | ''w'' | Save | | ''q'' | Quit | | ''x'' | Save and quit | | '''' | 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:start|Terminal Editors Index]] * [[protocols:gopher:start|Gopher]] * [[terminal:shell:start|Shell Configuration]] * [[terminal:start|Return to terminal]]