Please bear with us as we work to restore functionality to dotfiles.org.
My continuously evolving .vimrc
" VIMRC - Saurav Muralidharan
" Created 24/08/08
function! CurDir()
let curdir = substitute(getcwd(), '/home/wes/', '~/', 'g')
return curdir
endfunction
" Options
filetype indent on " load indent.vim
filetype plugin on " load ftplugin.vim
autocmd FileType c,cpp,slang set cindent
syn on
set nocompatible
set history=50
set ignorecase
set gdefault
set showmatch
set number
set makeprg=g++\ -o\ c\ %
set noautoindent
set smartindent
set formatoptions+=r
set shiftwidth=8
set tabstop=8
set incsearch
set guioptions-=T
set shortmess+=r
set guifont=MonteCarlo
set isk+=_,$,@,%,#,-
set hlsearch
set nobackup
set showmatch " show matching brackets by flickering cursor
set matchtime=1 " show matching brackets quicker than default
set wildmenu
set autoread
set wmh=0
set backspace=indent,eol,start
set whichwrap+=<,>,h,l
set dir=~/tmp,.,/tmp,/var/tmp " swap file locations
if version >= 700
"set cusorline " highlight the line with the cursor
set listchars=eol:$,tab:>-,trail:.,extends:>,precedes:<,nbsp:% " :help 'list
set numberwidth=4 " width of line numbers
set nofsync " improves performance -- let OS decide when to flush disk
else
set listchars=eol:$,tab:>-,trail:.,extends:>,precedes:< " : help 'list
endif
" refresh - redraw window
"
nnoremap :redraw!
" colorscheme torte
colorscheme marklar
" Status line config
set laststatus=2
set statusline=%<%F%h%m%r%h%w%y[%{CurDir()}%h]\ %{strftime(\"%c\",getftime(expand(\"%:p\")))}%=\ line:%l\/%L\ col:%c%V\ pos:%o\ %P
" Dictionary Stuff
set dictionary-=/home/sv/.vim/cdict dictionary+=/home/sv/.vim/cdict
set dictionary-=/home/sv/.vim/cppdict dictionary+=/home/sv/.vim/cppdict
set complete-=k complete+=k
" All insert mode tab completion taken care of by the SuperTab plugin
" Keyboard mappings
map H ^
map L $
map j_
map k_
imap ss
:nmap :set invnumber
:noremap :silent nohecho
" Autoformat entire file
:nmap + Gdgg :r !indent -kr -i8 -st %
" tab navigation like firefox
:nmap :tabprevious
:nmap :tabnext
:map :tabprevious
:map :tabnext
:imap :tabpreviousi
:imap :tabnexti
:nmap :tabnew
:imap :tabnew
",v - Bring up .vimrc
:let mapleader = ","
map v :sp $MYVIMRC
map m :MRU
map e :e.
" Daniel's Whitespace marker - kart's vimrc
"highlight RedundantWhitespace ctermbg=red guibg=red
"match RedundantWhitespace /\s\+$\| \+\ze\t/