aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent/vim.vim
blob: dd5f4f32ba926c1cd02087693a3d3c40e1b8d531 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
" Observe VimL conventions for two-space indents
setlocal shiftwidth=2
if exists('b:undo_indent')
  let b:undo_indent = b:undo_indent . '|setlocal shiftwidth<'
endif

" If we need to set 'softtabstop' too, do it
if &softtabstop != -1
  setlocal softtabstop=2
  if exists('b:undo_indent')
    let b:undo_indent = b:undo_indent . '|setlocal softtabstop<'
  endif
endif