Skip to content

Commit 3538ae9

Browse files
dkearnsandrewrk
authored andcommitted
Set b:undo_indent
Like b:undo_ftplugin in filetype plugins, b:undo_indent should be set to to a command that will undo the effect of any configuration changes in indent plugins. See :help undo_indent for details.
1 parent 1b918dc commit 3538ae9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

indent/zig.vim

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ setlocal cinkeys=0{,0},0),0],!^F,o,O
3333

3434
setlocal indentexpr=GetZigIndent(v:lnum)
3535

36+
let b:undo_indent = "setlocal cindent< cinkeys< cinoptions< indentexpr<"
37+
3638
function! GetZigIndent(lnum)
3739
let curretLineNum = a:lnum
3840
let currentLine = getline(a:lnum)

0 commit comments

Comments
 (0)