From 87a26c5bf169bafbee837e2323f24cfb07e35250 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 21 Dec 2021 14:41:23 +0100 Subject: Update --- indent/cobol.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indent/cobol.vim') diff --git a/indent/cobol.vim b/indent/cobol.vim index 7a0b7f07..37af5dcd 100644 --- a/indent/cobol.vim +++ b/indent/cobol.vim @@ -11,6 +11,7 @@ endif " Ankit Jain 22.03.2019 Changes & fixes: " Allow chars in 1st 6 columns " #C22032019 +" Ankit Jain 24.09.2021 add b:undo_indent (request by tpope) if exists("b:did_indent") finish @@ -22,6 +23,8 @@ setlocal indentexpr=GetCobolIndent(v:lnum) setlocal indentkeys& setlocal indentkeys+=0<*>,0/,0$,0=01,=~division,=~section,0=~end,0=~then,0=~else,0=~when,*,. +let b:undo_indent = "setlocal expandtab< indentexpr< indentkeys<" + " Only define the function once. if exists("*GetCobolIndent") finish -- cgit v1.2.3