aboutsummaryrefslogblamecommitdiff
path: root/vim/after/indent/vim.vim
blob: ed1b8ebb26e2b64b3019385ddb246310c8dfc7a3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                



                                                         
     
 

                            

                                                              
     
" Observe VimL conventions for two-space indents
setlocal shiftwidth=2
if v:version > 703 || v:version == 703 && has('patch693')
  setlocal softtabstop=-1
else
  setlocal softtabstop=2
endif

" Commands to undo the above
if exists('b:undo_indent')
  let b:undo_indent = b:undo_indent . '|setlocal shiftwidth<'
  let b:undo_indent = b:undo_indent . '|setlocal softtabstop<'
endif