" .vimrc by Franklin M. Siler " authored since april 2003 or so set nocompatible set encoding=utf-8 source $VIMRUNTIME/ftplugin/man.vim :au Filetype html,xml,xsl source ~/.vim/scripts/closetag.vim let @a="0iln -sfT Jj" if has('mouse') set mouse=a endif syntax on filetype plugin on set ofu=syntaxcomplete#Complete " REVERSE line ordering, and move those lines to the top of the file. command! -range=% Reverse ,g/^/m0 filetype plugin indent on let html_use_css=1 " stuff related to tabs and indentation set ts=8 set shiftwidth=3 set softtabstop=3 set cindent smarttab expandtab shiftround set backspace=indent,eol,start " set line break rules set nowrap linebreak showbreak=BR:\ " window options set ruler notitle " search options set hls incsearch ignorecase smartcase set laststatus=2 set wildmenu set wildignore=*.o,*.class,*.pyc,*.pyo,*.gz,*.tgz,*.tbz,*.bz2,*.dmg,*.iso,*.exe,*.smi,*.bin,*.doc,*.docx,*.xls,*.xlsx "set autochdir cno W w " functions shamelessly ripped from Keith " this doesn't work. don't know why. fu! SynFolds() set foldlevel=99 set foldmethod=syntax set foldcolumn=2 syntax region fmsFold start="{" end="}" transparent fold endf " syntax-specific setup "autocmd BufNewFile,BufRead *.php silent call SynFolds() autocmd FileType crontab,conf,make,dns,fstab set noexpandtab softtabstop=8 ts=8 shiftwidth=8 nowrap autocmd FileType blah set noexpandtab softtabstop=10 ts=10 shiftwidth=10 autocmd FileType tex set nocindent autocmd FileType html,php set formatoptions+=tl autocmd FileType cpp,sh,zsh set textwidth=80 autocmd FileType txt set fileformat=dos " set screen title let &titlestring = "vim(" . expand("%:t") . ")" if &term =~ "^screen" set t_ts=k set t_fs=\ endif if &term =~ "^screen" || &term == "xterm" set title endif " color setup: modified blue scheme with brute forces for backgrounds hi clear set background=dark if exists("syntax_on") syntax reset endif let g:colors_name = "fms" hi Normal ctermfg=yellow ctermbg=darkBlue hi NonText ctermfg=lightMagenta ctermbg=darkBlue hi comment ctermfg=gray ctermbg=darkBlue hi constant ctermfg=cyan ctermbg=darkBlue hi identifier ctermfg=gray ctermbg=darkBlue hi statement ctermfg=yellow ctermbg=darkBlue hi preproc ctermfg=green ctermbg=darkBlue hi type ctermfg=lightRed ctermbg=darkBlue hi special ctermfg=lightMagenta ctermbg=darkBlue hi Underlined ctermfg=cyan ctermbg=darkBlue cterm=underline hi ErrorMsg ctermfg=lightRed ctermbg=Black hi WarningMsg ctermfg=cyan ctermbg=darkBlue hi ModeMsg ctermfg=yellow ctermbg=darkBlue hi MoreMsg ctermfg=yellow ctermbg=darkBlue hi Error ctermfg=red ctermbg=black hi Todo ctermfg=black ctermbg=red hi Cursor ctermfg=black ctermbg=white hi Search ctermfg=black ctermbg=darkYellow hi IncSearch ctermfg=black ctermbg=darkYellow hi LineNr ctermfg=lightMagenta ctermbg=darkBlue hi title cterm=bold hi StatusLine ctermfg=black ctermbg=white cterm=bold hi StatusLineNC ctermfg=darkYellow ctermbg=black cterm=none hi label ctermfg=yellow ctermbg=darkBlue hi operator ctermfg=darkYellow ctermbg=darkBlue hi clear Visual hi Visual ctermfg=black ctermbg=darkCyan term=reverse hi DiffChange ctermfg=black ctermbg=darkGreen hi DiffText ctermfg=black ctermbg=lightGreen hi DiffAdd ctermfg=white ctermbg=cyan hi DiffDelete ctermfg=black ctermbg=cyan hi Folded ctermfg=black ctermbg=yellow hi FoldColumn ctermfg=gray ctermbg=black hi cIf0 ctermfg=gray ctermbg=darkBlue """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " GUI stuff " """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" hi Normal guifg=white guibg=darkBlue hi NonText guifg=lightMagenta hi comment guifg=gray gui=bold hi constant guifg=cyan hi identifier guifg=gray hi statement guifg=yellow gui=none hi preproc guifg=green hi type guifg=orange hi special guifg=magenta hi Underlined guifg=cyan gui=underline hi ErrorMsg guifg=orange guibg=darkBlue hi WarningMsg guifg=cyan guibg=darkBlue gui=bold hi ModeMsg guifg=yellow gui=NONE hi MoreMsg guifg=yellow gui=NONE hi Error guifg=red guibg=darkBlue gui=underline hi Todo guibg=red hi Cursor guifg=black guibg=white hi Search guifg=black guibg=orange hi IncSearch guifg=black guibg=yellow hi LineNr guifg=pink hi title guifg=white gui=bold hi StatusLine guifg=white guibg=blue gui=bold hi StatusLineNC guifg=black guibg=blue gui=NONE hi label guifg=yellow hi operator guifg=orange gui=bold hi Visual guifg=black guibg=darkCyan hi DiffChange guifg=black guibg=darkGreen hi DiffText guifg=black guibg=olivedrab hi DiffAdd guifg=black guibg=slateblue hi DiffDelete guifg=black guibg=coral hi Folded guifg=black guibg=orange hi FoldColumn guifg=black guibg=gray30 hi cIf0 guifg=gray " bleeding literal tabs and trailing whitespace highlight RedundantWhitespace ctermbg=red guibg=red match RedundantWhitespace /\s\+$\|\t\|TODO\|XXX/