" Maintainer: Markus Mottl " URL: http://www.ocaml.info/vimrc " I want Vim, not Vi set nocompatible " Don't want to type indention set autoindent " Automatically write buffer before special actions set autowrite " Tabs are evil set expandtab " My default format program set formatprg=fmt\ -w\ 80 " Only hide invisible buffers (keeps their editing state) set hidden " Command line history set history=50 " Highlight matches set hlsearch " Always want statusline set laststatus=2 " Set statusline set statusline=%<%f\ \ \|\ %o\ %h%m%r%=%-14.(%l,%c%V%)\ %P " Don't display macro steps set lazyredraw " Don't move cursor to first line when scrolling set nostartofline " Need to find my generic makefiles set makeprg=make\ -I\ ~/archive/Makefiles " Want mouse support set mouse=a " Want to see cursor position set ruler " Not too deep, not too shallow set shiftwidth=2 " Show size of visual selection set showcmd " Show matching brackets set showmatch " Want better buffer handling in quickfix mode set switchbuf=useopen,usetab,split " As God wanted it set textwidth=80 " No beeps - don't want to annoy neighbours set visualbell " Backspacing + deleting and wrapping of lines set backspace=start,eol,indent whichwrap=b,s,l,h,<,>,[,] map dh map  map!  map [3~ map! [3~ " File types :syntax on :filetype plugin indent on " Colors for color xterms if has("terminfo") set t_Co=8 set t_Sf=[3%p1%dm set t_Sb=[4%p1%dm else set t_Co=8 set t_Sf=[3%dm set t_Sb=[4%dm endif colorscheme markus " Function key settings - 'make'-shortcuts map :w map :make map :cp map :cn map :make clean map :clist map :clist! " Turn off match highlighting map :noh " Format a paragraph map gqap " Leave editor quickly (when saved) map :q " Prefix for local mappings let maplocalleader = "\\" " OCaml stuff let no_ocaml_comments = 1 set makeprg=omake " OMLet let omlet_indent_match = 0 let omlet_indent_function = 0 let omlet_indent_let = 0 " Tab mappings map :tabnew map :tabp map :tabn " Remove GUI-nonsense set guioptions-=T set guioptions-=m set guioptions-=r set guioptions-=R set guioptions-=l set guioptions-=L " Ignore irrelevant suffixes for filename completion set wildignore+=*.a,*.bak,*~,*.swp,*.o,*.info,*.aux,*.dvi,*.bbl,*.blg,*.brf,*.cb,*.ind,*.idx,*.ilg,*.inx,*.out,*.toc,*.cmi,*.cmo,*.cma,*.cmx,*.cmxa,*.omc,*.annot,*.exe,*.bc,*.sums,*.spit,*.spot " Change directories automatically autocmd BufEnter * lcd %:p:h