From 521220f389907255b6d9a87458333b468ffc7ac4 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 12:09:44 +0100 Subject: Change ocaml provider, closes #320 --- indent/ocaml.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'indent/ocaml.vim') diff --git a/indent/ocaml.vim b/indent/ocaml.vim index 73ab127a..2da3e15b 100644 --- a/indent/ocaml.vim +++ b/indent/ocaml.vim @@ -8,9 +8,13 @@ endif " Mike Leary " Markus Mottl " 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") @@ -23,7 +27,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") -- cgit v1.2.3