aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/csv.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-14 23:00:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-14 23:00:25 +1200
commit08f1b6525c50bd88a45a310b0fcac3f9ec58dd74 (patch)
treefdf87dfe1f22a55e0ad272df955db73a96e9b6ed /vim/indent/csv.vim
parentMerge branch 'release/v6.1.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-a0b1480847b852a76fd9021426e88bf5bfde09fa.tar.gz (sig)
dotfiles-a0b1480847b852a76fd9021426e88bf5bfde09fa.zip
Merge branch 'release/v6.2.0'v6.2.0
* release/v6.2.0: (22 commits) Spruce up CSV and TSV Vim filetype scripts Add explanatory comment on Vim indent ftplugin Remove unneeded password filetype Use tabs for Git configuration files Fix layout of vim-keep-position submodule config Replace and refactor Vim paste plugins Move autocmd definitions out of augroup block Refactor colorscheme select with cursorline hooks Restore Git diff.algorithm to 'patience' Tweak a comment about jetpack mapping Add Vim leader maps for :command and :function Add -bar attribute to :AddLocalSpellFile command Add missing b:undo_ftplugin commands for ft=mail Remove resolved issue from ISSUES.md list Wrap mail quote cleanup in command-func Move to body text correctly for start guesser Wrap mail starting point guesser in command-func Use more idiomatic check for empty string Ensure we're in body text before breaking quotes ...
Diffstat (limited to 'vim/indent/csv.vim')
-rw-r--r--vim/indent/csv.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/indent/csv.vim b/vim/indent/csv.vim
index fd3c99de..78bddd33 100644
--- a/vim/indent/csv.vim
+++ b/vim/indent/csv.vim
@@ -4,8 +4,12 @@ if exists('b:did_indent')
endif
let b:did_indent = 1
-" Manual indenting and literal tabs for CSVs
+" Manual indenting
setlocal noautoindent
+let b:undo_indent = 'setlocal autoindent<'
+
+" Literal tabs
setlocal noexpandtab
setlocal softtabstop=0
-let b:undo_indent = 'setlocal autoindent< expandtab< softtabstop<'
+let &shiftwidth = &tabstop
+let b:undo_indent = 'setlocal expandtab< softtabstop< shiftwidth<'