aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-30 09:34:11 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-30 09:34:11 +1300
commitd8caa0875a850e2cbe93050ef030205f96fc1e32 (patch)
treee4cf59ab05373d98f418ad7316197a03af928036 /vim/after
parentddc35e0dd570781fe3aecb62610af4776231974f (diff)
downloaddotfiles-d8caa0875a850e2cbe93050ef030205f96fc1e32.tar.gz
dotfiles-d8caa0875a850e2cbe93050ef030205f96fc1e32.zip
Remove pre-7.0 Vim handling/boilerplate
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/indent/vim.vim11
1 files changed, 7 insertions, 4 deletions
diff --git a/vim/after/indent/vim.vim b/vim/after/indent/vim.vim
index 548d3e5c..3d439458 100644
--- a/vim/after/indent/vim.vim
+++ b/vim/after/indent/vim.vim
@@ -1,8 +1,11 @@
+" Remove inapplicable defaults from 'indentkeys'
+" Should only need to undo this if the stock plugin didn't
+setlocal indentkeys-=0#,0{,0},0),:
+if !exists('b:undo_indent')
+ let b:undo_indent = '|setlocal indentkeys<'
+endif
+
" Observe VimL conventions for two-space indents
setlocal shiftwidth=2
setlocal softtabstop=2
let b:undo_indent .= '|setlocal shiftwidth< softtabstop<'
-
-" Remove inapplicable defaults from 'indentkeys'
-setlocal indentkeys-=0#,0{,0},0),:
-let b:undo_indent .= '|setlocal indentkeys<'