diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-30 09:34:11 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-30 09:34:11 +1300 |
commit | d8caa0875a850e2cbe93050ef030205f96fc1e32 (patch) | |
tree | e4cf59ab05373d98f418ad7316197a03af928036 /vim/after/indent | |
parent | Merge branch 'hotfix/v2.0.1' into develop (diff) | |
download | dotfiles-d8caa0875a850e2cbe93050ef030205f96fc1e32.tar.gz dotfiles-d8caa0875a850e2cbe93050ef030205f96fc1e32.zip |
Remove pre-7.0 Vim handling/boilerplate
Diffstat (limited to 'vim/after/indent')
-rw-r--r-- | vim/after/indent/vim.vim | 11 |
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<' |