aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/csv.vim
blob: a9aba05698ed2fae647a22318cb49b934ae1f35e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" Only do this when not done yet for this buffer
if exists('b:did_indent')
  finish
endif
let b:did_indent = 1

" Manual indenting
setlocal noautoindent
let b:undo_indent = 'setlocal autoindent<'

" Literal tabs
setlocal noexpandtab
setlocal shiftwidth=0
let b:undo_indent = 'setlocal expandtab< shiftwidth<'
if &softtabstop != -1
  let &l:softtabstop = &l:shiftwidth
  let b:undo_indent .= '|setlocal softtabstop<'
endif