" ######################################## " vim local configuration file -- ~/.vimrc " By Neal Parikh " ######################################## " Preferences (nocompatible must be first) set nocompatible set autowrite set background=dark set backspace=indent,eol,start set cinoptions=4 set fdm=marker set foldmarker={{{,}}} set incsearch set joinspaces set magic set more set nobackup set nohlsearch set nostartofline set number set pastetoggle=^P set ruler set shell=$SHELL set shiftround set shiftwidth=4 set showcmd set showmatch set smartindent set softtabstop=4 set tabstop=4 set ttyfast set visualbell " Don't use Ex mode, use Q for formatting map Q gq " Only do this part when compiled with support for autocommands. if has("autocmd") " Enable file type detection. " Use the default filetype settings, so that mail gets 'tw' set to 72, " 'cindent' is on in C files, etc. " Also load indent files, to automatically do language-dependent indenting. filetype plugin indent on " For all text files set 'textwidth' to 78 characters. autocmd FileType text setlocal textwidth=78 " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif endif " has("autocmd") " Fix my typos; I always do this nmap :W :w nmap :Wq :wq nmap :Q :q " For quick comment blocks abbr #b /************************************************ abbr #e ************************************************/ " Create an ':html' alias to writeout an HTML-ized version of the file cab html so \$VIMRUNTIME/syntax/2html.vim " Set the color scheme for syntax hilighting and such colorscheme darkblue " done.