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..047a353d 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
+
+" Ancient Vim can't use the '<' suffix syntax for resetting local integer
+" options
+if v:version > 700
+ let b:undo_user_indent
+ \ = 'setlocal shiftwidth< softtabstop< tabstop<'
+endif