" Vim settings file " Language: OCaml " Maintainers: Mike Leary " Markus Mottl " URL: http://www.ai.univie.ac.at/~markus/vim/ftplugin/ocaml.vim " Last Change: 2001 Sep 17 - added cpo-flag " 2001 Sep 16 - fixed 'no_mail_maps'-bug (MM) " 2001 Sep 02 - initial release (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`< endif