$Id$ " Id: vimrc, Thu Mar 9 08:48:39 2006 set nocompatible " Use Vim defaults (* sanity *) set backspace=2 " allow backspacing in insert mode (* sanity *) set wrap " Wrap lines (default) set ruler " show the cursor position at all times set showcmd " display incomplete commands set novisualbell " don't flash the screen (default) set fileformats=unix " Save with UNIX linebreaks set modelines=0 " Disable modelines (* security *) set showmode " Show what mode we're in on the status line set nolist " Keep invisible chars invisible set notitle " set formatoptions=tcqor " t=text, c=comments, q=format with gq command, o,r=autoinsert comment leader " set cinwords=if,else,while,do,for,switch,case " Searching set nohlsearch " Do not highlight all matched paggerns set incsearch " Show the first match for pattern while typing set noignorecase " Case-insensitive searching yes/no " Programming set noexpandtab " keep tabs as tabs, not spaces (default) set autoindent " Automatic indenting "set cindent set tabstop=8 " Number of spaces a tab is (default) syntax on " Enable syntax highlighting " set smartindent " Smart indenting (default; cindent overrides) set showmatch " show matching brackets " set backup " Keep a backup file " set writebackup " Backup current file while editing " set backupdir=.,~/tmp,~/ " Where to save backup files " set backupcopy=yes " How to create backup files (default) set directory=/tmp " Where to save swap files (crash recovery) "set runtimepath=~/.vim,/etc/vim/runtime if has("multi_byte") set encoding=utf-8 set fileencoding=utf-8 set termencoding=utf-8 endif " Former Color options highlight identifier term=bold ctermfg=blue highlight comment term=bold ctermfg=magenta highlight constant term=bold ctermfg=red highlight statement term=bold ctermfg=green highlight special term=bold ctermfg=blue "highlight special term=bold ctermfg=yellow highlight preproc term=bold ctermfg=blue " mapping keys set pastetoggle=`` "nmap [[ "nmap ]] "nmap \\ :$ "nmap :w "imap ''