" I don't want to become awkward when editing on another machine, " so I stick to as few and as highly effective settings as possible. set nocompatible " we want vim, not vi set ruler " display current position in file set backspace=2 " BS and Del in insert mode allowed and go through EOLs set number " line numbers set scrolloff=3 set autoindent set noerrorbells if has("gui_running") set guioptions-=f " fork+detach console set guioptions-=t " no menu tear-off colorscheme peachpuff else set background=dark " my console has black bg endif filetype plugin indent on syntax on " Current directory follows the file being edited autocmd BufEnter * lcd %:p:h " [F4] for quick :make noremap :make " [F5] toggles error window noremap :cope autocmd BufReadPost quickfix noremap :ccl:noremap F5> ESC>:copeC-M>:echo ":ccl" " [Ctrl-PgUp/Dn] to flip through :make errors noremap :cp noremap :cn inoremap :cpi inoremap :cni " save keystrokes on the Perl shebang iabbrev #!p #!/usr/bin/perl -wuse strict;:filetype detecti