version 5.4

autocmd!

filetype on
syntax on

set autoindent
set autowrite
set backspace=indent,eol,start
set nobackup
set background=dark
set clipboard= " no unified buffer
set nocompatible
set complete=.,b,u,w,t,i,d " buffers used for lookup in autocompletion
set shiftwidth=2
set cinoptions=:0,t0,+4,(0,u0,)40,*40
set cinkeys=0{,0},!^F,o,O,e,*,0#
set comments=s1:/*,mb:*,el:*/,://,b:#,:%,:XCOMM,nb:>,fb:-
set dictionary=/usr/share/dict/words
set noerrorbells
set esckeys
set expandtab
set fileformat=unix
set formatoptions=cqrtl
set helpheight=0
set hidden
set highlight=8r,db,es,hs,mb,Mr,nu,rs,sr,tb,vr,ws
set history=100
set nohlsearch
set ignorecase
set incsearch
set nojoinspaces
set keywordprg=dict
set laststatus=2
set lazyredraw
set magic
set modeline
set modelines=4
set more
set mouse=a
set nonumber
set pastetoggle=
set report=0
set norestorescreen
set t_ti= t_te=
set ruler
set scrolloff=4
set showbreak="+ "
set noshowcmd
set showmatch
set showmode
set smartcase
set smartindent
set smarttab
set nostartofline
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
set tabstop=2
set tildeop
set textwidth=76
set title
set ttyfast
set undolevels=100
set updatecount=100
set updatetime=6000
set viminfo=%,'20,\"500,:500,n~/.viminfo
set visualbell
set whichwrap=< ,>,b,s,[,]
" set foldmethod=indent
" set foldlevel=2
" iskeyword=@,48-57,_,192-255   (default)
" set iskeyword=@,48-57,_,192-255,-,.,@-@

" if &term=="xterm"
"   set t_Co=8          " "terminal has eight colors"
"   set t_Sb=m    " escape sequence for background
"   set t_Sf=m    " escape sequence for foreground
" endif

cmap stripcr %s///g
cmap clearempty %s/^\s\+$//

so $VIMRUNTIME/syntax/syntax.vim

augroup cprog
    au!
    autocmd FileType c,cpp set noautoindent cindent formatoptions=croql shiftwidth=2 softtabstop=2 textwidth=78 wrapmargin=3
    autocmd FileType c,cpp source ~/.vim/syntax-c.vim
    autocmd FileType c,cpp set keywordprg&
augroup END

augroup html
    au!
    autocmd FileType html,php3 set nocindent autoindent sw=2 ts=8 expandtab
augroup END

augroup wml
    au!
    autocmd BufRead *.wml set ft=html
augroup END

augroup mail
    au!
    au BufNewFile,BufRead .letter,mutt*,nn.*,snd.* set tw=72
augroup END

" this means vim will always jump to the last edited line in a file if poss
autocmd BufEnter *,.* :normal '"

" Unbold the colours.
hi Comment    cterm=none
hi Constant   cterm=none
hi Special    cterm=none
hi Identifier cterm=none
hi Statement  cterm=none
hi PreProc    cterm=none
hi Type       cterm=none
hi Ignore     cterm=none

Leave a comment...