From 2392d463fe2039db13bbf89b6f9954b41a37a9c0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 24 Sep 2021 23:12:46 +1000 Subject: [PATCH] Set b:undo_indent See :help undo_indent for details --- indent/json.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indent/json.vim b/indent/json.vim index 7873d65..c0eae91 100644 --- a/indent/json.vim +++ b/indent/json.vim @@ -22,6 +22,8 @@ setlocal nosmartindent setlocal indentexpr=GetJSONIndent() setlocal indentkeys=0{,0},0),0[,0],!^F,o,O,e +let b:undo_indent = "setl inde< indk< si<" + " Only define the function once. if exists("*GetJSONIndent") finish