aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-02-17 23:00:16 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-02-17 23:00:16 +1300
commitc44e0f30219fe8cdb9443931ddf05bdb2904846c (patch)
treee5cc4b2061c5b78e274351dde35c4024bb78fa75
parentRemove 'smarttab' setting (diff)
downloaddotfiles-c44e0f30219fe8cdb9443931ddf05bdb2904846c.tar.gz
dotfiles-c44e0f30219fe8cdb9443931ddf05bdb2904846c.zip
Turn off Vim 'softtabstop' for CSV and TSV files
Otherwise entering a Tab in insert mode inserts four spaces. I'm not sure how I didn't notice this before.
-rw-r--r--vim/indent/csv.vim3
-rw-r--r--vim/indent/tsv.vim3
2 files changed, 4 insertions, 2 deletions
diff --git a/vim/indent/csv.vim b/vim/indent/csv.vim
index 938bc99d..fd3c99de 100644
--- a/vim/indent/csv.vim
+++ b/vim/indent/csv.vim
@@ -7,4 +7,5 @@ let b:did_indent = 1
" Manual indenting and literal tabs for CSVs
setlocal noautoindent
setlocal noexpandtab
-let b:undo_indent = 'setlocal autoindent< expandtab<'
+setlocal softtabstop=0
+let b:undo_indent = 'setlocal autoindent< expandtab< softtabstop<'
diff --git a/vim/indent/tsv.vim b/vim/indent/tsv.vim
index 6f70276d..adbde97d 100644
--- a/vim/indent/tsv.vim
+++ b/vim/indent/tsv.vim
@@ -7,4 +7,5 @@ let b:did_indent = 1
" Manual indenting and literal tabs for TSVs
setlocal noautoindent
setlocal noexpandtab
-let b:undo_indent = 'setlocal autoindent< expandtab<'
+setlocal softtabstop=0
+let b:undo_indent = 'setlocal autoindent< expandtab< softtabstop<'