Skip to content

Commit 87b0a7a

Browse files
committed
Set b:undo_indent
See :help undo_indent for details.
1 parent d02e928 commit 87b0a7a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

indent/dune.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ let b:did_indent = 1
1111

1212
" dune format-dune-file uses 1 space to indent
1313
setlocal softtabstop=1 shiftwidth=1 expandtab
14+
15+
let b:undo_indent = "setl et< sts< sw<"

indent/ocaml.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ setlocal indentkeys+=0=and,0=class,0=constraint,0=done,0=else,0=end,0=exception,
2424
setlocal nolisp
2525
setlocal nosmartindent
2626

27+
let b:undo_indent = "setl et< inde< indk< lisp< si<"
28+
2729
" At least Marc Weber and Markus Mottl do not like this:
2830
" setlocal textwidth=80
2931

@@ -33,6 +35,7 @@ if !exists("no_ocaml_comments")
3335
setlocal comments=sr:(*\ ,mb:\ ,ex:*)
3436
setlocal comments^=sr:(**,mb:\ \ ,ex:*)
3537
setlocal fo=cqort
38+
let b:undo_indent .= " | setl com< fo<"
3639
endif
3740
endif
3841

0 commit comments

Comments
 (0)