summaryrefslogtreecommitdiffstats
path: root/indent/ocaml.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-04 12:09:44 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-04 12:09:44 +0100
commit521220f389907255b6d9a87458333b468ffc7ac4 (patch)
treec644a51effe5dc1a39b22908f0506b5bea415362 /indent/ocaml.vim
parentb4cb58661ebf82e117d0c25673e2e59cb18044d2 (diff)
downloadvim-polyglot-3.5.0.tar.gz
vim-polyglot-3.5.0.zip
Change ocaml provider, closes #320v3.5.0
Diffstat (limited to 'indent/ocaml.vim')
-rw-r--r--indent/ocaml.vim10
1 files changed, 8 insertions, 2 deletions
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 <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")
@@ -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")