" Jon Parise version 6.0 " 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 expandtab " 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=5 " 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 softtabstop=4 " navigate with 4 space tabs 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 viminfo='20,\"50 " use .viminfo and restrict it to 50 lines of registers 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 " 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 " autocmd BufRead * set formatoptions=tcql nocindent comments& " autocmd BufRead *.c,*.h set formatoptions=croql cindent wrapmargin=0 comments=sr:/*,mb:*,el:*/,:// augroup END augroup mutt au! autocmd BufRead mutt* set laststatus=1 tw=70 autocmd BufRead mutt* normal :g/^> -- *$/,/^$/-1d gg augroup END augroup slrn au! autocmd BufRead SLRN* set laststatus=1 tw=70 autocmd BufRead SLRN* normal :g/^> -- *$/,/^$/-1d gg augroup END augroup cvs au! autocmd BufRead cvs* set laststatus=1 tw=78 augroup END augroup pdb au! autocmd BufRead *.tmpl set ts=8 sw=4 noet tw=0 wm=0 autocmd BufRead *.pm set ts=8 sw=4 noet tw=0 wm=0 autocmd BufRead *.pl set ts=8 sw=4 noet tw=0 wm=0 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