aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent/awk.vim
blob: fc848d2afccad258c82030fc33368be6850cad1e (plain) (blame)
1
2
3
4
5
6
7
" The stock AWK indenting is decent, but doesn't include an undo variable;
" this adds one, clearing away the sole global function too.
if !exists('b:undo_indent')
  let b:undo_indent = 'unlet! b:did_indent'
  let b:undo_indent = b:undo_indent . '|setlocal indentexpr< indentkeys<'
  let b:undo_indent = b:undo_indent . '|delfunction! GetAwkIndent'
endif