cyko /.vimrc

My continuously evolving .vimrc
" VIMRC - Saurav Muralidharan
" Created: 24/08/08, Last mod: 16/06/2010

function! CurDir()
	let curdir = substitute(getcwd(), '/home/sauravm/', '~/', 'g')
	return curdir
endfunction

syn on
autocmd FileType c,cpp,slang set cindent
filetype indent on
filetype plugin on
set nocompatible
set history=50
set ignorecase
set gdefault
set showmatch
set number
set wildmenu
set autoread
set wmh=0


set tw=0
set shiftwidth=8
set tabstop=8
set softtabstop=8
set nowrap
set nobackup
set noautoindent
set smartindent
set formatoptions+=r

set nu
set cursorline
set nuw=4
set title
set expandtab
set smarttab
set showmode
set backspace=eol,start,indent
set visualbell
set shortmess+=r
set isk+=_,$,@,%,#,-
" set whichwrap+=<,>,h,l

" -- SEARCH OPT --
set incsearch
set hlsearch
set smartcase

" -- KEYB --
let mapleader = ","
nnoremap <Space> :noh<CR>
nnoremap L $
nnoremap H ^
nnoremap <Leader>m :MRU<CR>
nnoremap <Leader>z <C-z>
nnoremap <Leader>e :e .<CR>
nnoremap <Leader>v :e ~/.vimrc<CR>
nnoremap <Leader>w :w<CR>
nnoremap <Leader>q :q<CR>
:nmap  :set invnumber

" -- 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 

" -- TAB NAVIGATION (Firefox style) --



" -_ MISC _-

au BufNewFile,BufRead *.cu set ft=cu
au BufNewFile,BufRead *.notes set ft=notes
set grepprg=grep\ -nH\ $*

let g:tex_flavor='latex'
let g:Tex_ViewRule_dvi = 'evince'
colorscheme autumn2 " Good ones: marklar_ul, Autumn2, Nuvola and Habilight