diff options
Diffstat (limited to 'vim/after/indent/vim.vim')
-rw-r--r-- | vim/after/indent/vim.vim | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/vim/after/indent/vim.vim b/vim/after/indent/vim.vim index 320e5d7d..59179225 100644 --- a/vim/after/indent/vim.vim +++ b/vim/after/indent/vim.vim @@ -1,15 +1,9 @@ +" Use two (not four!) spaces for indentation, per convention +runtime macros/indent/spaces/2.vim + " Remove inapplicable defaults from 'indentkeys'; we should only need to undo " this if the stock plugin didn't already arrange that (before v7.3.539) 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 expandtab -setlocal shiftwidth=2 -let b:undo_indent .= '|setlocal expandtab< shiftwidth<' -if &softtabstop != -1 - let &l:softtabstop = &l:shiftwidth - let b:undo_indent .= '|setlocal softtabstop<' -endif |