" Vim settings file " Language: OCaml " Maintainers: Mike Leary " Markus Mottl " URL: http://www.ai.univie.ac.at/~markus/vim/ftplugin/ocaml.vim " Last Change: 2003 May 11 " 2001 Nov 01 - added local bindings for inserting " type holes using 'assert false' (MM) " 2001 Oct 02 - insert spaces in line comments (MM) " Only do these settings when not done yet for this buffer if exists("b:did_ftplugin") finish endif " Don't do other file type settings for this buffer let b:did_ftplugin = 1 set cpo-=C " Error formats setlocal efm= \%EFile\ \"%f\"\\,\ line\ %l\\,\ characters\ %c-%*\\d:, \%EFile\ \"%f\"\\,\ line\ %l\\,\ character\ %c:%m, \%+EReference\ to\ unbound\ regexp\ name\ %m, \%Eocamlyacc:\ e\ -\ line\ %l\ of\ \"%f\"\\,\ %m, \%Wocamlyacc:\ w\ -\ %m, \%-Zmake%.%#, \%C%m " Add mappings, unless the user didn't want this. if !exists("no_plugin_maps") && !exists("no_ocaml_maps") " Uncommenting if !hasmapto('Comment') nmap c LUncomOn vmap c BUncomOn nmap C LUncomOff vmap C BUncomOff endif nnoremap LUncomOn mz0i(* $A *)`z nnoremap LUncomOff :s/^(\* \(.*\) \*)/\1/ vnoremap BUncomOn :'<,'>`0i(*`>o0i*)`< vnoremap BUncomOff :'<,'>`dd`< if !hasmapto('Abbrev') iabbrev ASS (assert false) endif endif