" .vimrc " Jon Parise (jon@csh.rit.edu) version 5.5 " General configuration settings " set noautoindent " turn autoindenting off set autowrite " auto-save before running external commands set nobackup " turn backups off set backspace=2 " smarter backspace set background=dark " dark background (as opposed to "light") set nocompatible " turn off full vi compatibility set cpoptions=aABceF " vi compatibility options set noerrorbells " turn off error bells set esckeys " allows cursor keys in insert mode set noexpandtab " expand tabs to spaces set formatoptions=cqrt " options for "text format" ("gp") set helpheight=0 " disable help set nohlsearch " turn off search result highlighting set noignorecase " don't ignore case in search patterns set noinsertmode " don't start vim in insertmode set joinspaces " insert two spaces after period when joining lines set laststatus=2 " always show status line set nolist " turn off extended character listing set magic " use extended regexp in search patterns set modeline " turn on the modeline set modelines=1 " last line is the modeline set mousehide " hide the mouse in the gui set nonumber " don't number lines set report=0 " show all changes set noruler " show cursor position set shell=tcsh " set the shell set shiftwidth=4 " number of spaces in each indent set shortmess=atI " abbreviate all messages set noshowcmd " don't show incomplete commands set showmode " show the current mode set suffixes=.lib,.o " ignore filesnames with these suffixes set nostartofline " don't jump to first char with page commands set tabstop=4 " set tabs to four spaces set textwidth=76 " set the maximum text width set notitle " suppress title messages set t_vb= " turn off terminal's visual bell set visualbell " turn on the visual bell set wildchar= " character used for command line expansion set nowritebackup " don't write backups " Fix the backspace key on some terminals imap map " Reformat the current paragraph to textwidth imap gqap map gqap " Spelling source ~/.vim/spelling " Additional abbreviations ab listinfoimp http://lists.horde.org/mailman/listinfo/imp ab listinfodev http://lists.horde.org/mailman/listinfo/dev " AutoCommands if has("autocmd") au! augroup cprog au! autocmd BufNewFile,BufRead *.c,*.h set formatoptions=croql autocmd BufNewFile,BufRead *.c,*.h set cindent autocmd BufNewFile,BufRead *.c,*.h set comments=sr:/*,mb:*,el:*/,:// autocmd BufNewFile,BufRead *.c,*.h set cinoptions=t0(0 augroup END augroup mutt au! autocmd BufRead mutt* set laststatus=1 tw=70 expandtab autocmd BufRead mutt* set formatoptions=tq autocmd BufRead mutt* normal :g/^> -- *$/,/^$/-1d gg autocmd BufRead mutt* syntax off augroup END augroup slrn au! autocmd BufRead SLRN* set laststatus=1 tw=70 expandtab autocmd BufRead SLRN* normal :g/^> -- *$/,/^$/-1d gg augroup END augroup cvs au! autocmd BufRead cvs* set laststatus=1 tw=78 expandtab augroup END endif " Syntax highlighting if has("syntax") let java_ignore_javadoc=1 syntax on highlight Cursor ctermbg=black ctermfg=white highlight Directory ctermbg=black ctermfg=white highlight ErrorMsg ctermbg=black ctermfg=darkcyan highlight LineNr ctermbg=black ctermfg=darkcyan highlight MoreMsg ctermbg=black ctermfg=cyan highlight NonText ctermbg=black ctermfg=darkgrey highlight Normal ctermbg=black ctermfg=grey highlight Question ctermbg=black ctermfg=grey highlight Error ctermbg=black ctermfg=darkcyan highlight SpecialKey ctermbg=black ctermfg=cyan highlight StatusLine ctermbg=white ctermfg=darkgrey highlight StatusLineNC ctermbg=black ctermfg=darkgrey highlight Title ctermbg=black ctermfg=cyan highlight Visual ctermbg=white ctermfg=darkgrey highlight WarningMsg ctermbg=black ctermfg=cyan highlight Comment ctermbg=black ctermfg=darkgrey highlight Constant ctermbg=black ctermfg=white highlight Identifier ctermbg=black ctermfg=grey highlight Operator ctermbg=black ctermfg=grey highlight PreProc ctermbg=black ctermfg=white highlight Special ctermbg=black ctermfg=grey highlight Statement ctermbg=black ctermfg=grey highlight ToDo ctermbg=black ctermfg=cyan highlight Type ctermbg=black ctermfg=white endif