Mercurial > vim
diff runtime/indent/ocaml.vim @ 5055:c458ff35497e
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 29 Jun 2013 23:05:20 +0200 |
parents | b7811ab264bf |
children | 63b0b7b79b25 |
line wrap: on
line diff
--- a/runtime/indent/ocaml.vim +++ b/runtime/indent/ocaml.vim @@ -4,9 +4,13 @@ " Mike Leary <leary@nwlink.com> " Markus Mottl <markus.mottl@gmail.com> " URL: http://www.ocaml.info/vim/indent/ocaml.vim -" Last Change: 2010 Sep 04 - Added an indentation improvement by Mark Weber +" Last Change: 2013 Jun 29 " 2005 Jun 25 - Fixed multiple bugs due to 'else\nreturn ind' working " 2005 May 09 - Added an option to not indent OCaml-indents specially (MM) +" 2013 June - commented textwidth (Marc Weber) +" +" Marc Weber's comment: This file may contain a lot of (very custom) stuff +" which eventually should be moved somewhere else .. " Only load this indent file when no other was loaded. if exists("b:did_indent") @@ -19,7 +23,9 @@ setlocal indentexpr=GetOCamlIndent() setlocal indentkeys+=0=and,0=class,0=constraint,0=done,0=else,0=end,0=exception,0=external,0=if,0=in,0=include,0=inherit,0=initializer,0=let,0=method,0=open,0=then,0=type,0=val,0=with,0;;,0>\],0\|\],0>},0\|,0},0\],0) setlocal nolisp setlocal nosmartindent -setlocal textwidth=80 + +" At least Marc Weber and Markus Mottl do not like this: +" setlocal textwidth=80 " Comment formatting if !exists("no_ocaml_comments")