aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/vim.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/indent/vim.vim')
-rw-r--r--vim/indent/vim.vim10
1 files changed, 7 insertions, 3 deletions
diff --git a/vim/indent/vim.vim b/vim/indent/vim.vim
index 3b038349..f9a8f211 100644
--- a/vim/indent/vim.vim
+++ b/vim/indent/vim.vim
@@ -1,7 +1,11 @@
-" Restore local indent settings to the global values
-runtime indent/_GLOBAL.vim
-
" Observe VimL conventions for two-space indents
setlocal shiftwidth=2
setlocal softtabstop=2
setlocal tabstop=2
+
+" Undo
+if !exists('b:undo_indent')
+ let b:undo_indent = ''
+endif
+let b:undo_indent = b:undo_indent
+ \ . '|setlocal shiftwidth< softtabstop< tabstop<'