Skip to content

Commit 4aa69b8

Browse files
committed
Set b:undo_indent
Thanks to dkearns in rust-lang#459 for the initial patch.
1 parent 6dc92c7 commit 4aa69b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

indent/rust.vim

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ setlocal indentkeys=0{,0},!^F,o,O,0[,0],0(,0)
2424

2525
setlocal indentexpr=GetRustIndent(v:lnum)
2626

27+
let b:undo_indent = "setlocal cindent< cinoptions< cinkeys< cinwords< lisp< autoindent< indentkeys< indentexpr<"
28+
2729
" Only define the function once.
2830
if exists("*GetRustIndent")
2931
finish

0 commit comments

Comments
 (0)