aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/csv.vim6
-rw-r--r--vim/ftplugin/tsv.vim13
2 files changed, 4 insertions, 15 deletions
diff --git a/vim/ftplugin/csv.vim b/vim/ftplugin/csv.vim
index 162da402..9bd3e86e 100644
--- a/vim/ftplugin/csv.vim
+++ b/vim/ftplugin/csv.vim
@@ -4,8 +4,6 @@ if exists('b:did_ftplugin')
endif
let b:did_ftplugin = 1
-" No autoformatting, literal tabs
-setlocal noautoindent
-setlocal noexpandtab
+" No autoformatting
setlocal formatoptions=
-let b:undo_ftplugin = 'setlocal autoindent< expandtab< formatoptions<'
+let b:undo_ftplugin = 'formatoptions<'
diff --git a/vim/ftplugin/tsv.vim b/vim/ftplugin/tsv.vim
index 162da402..f78da35f 100644
--- a/vim/ftplugin/tsv.vim
+++ b/vim/ftplugin/tsv.vim
@@ -1,11 +1,2 @@
-" Only do this when not yet done for this buffer
-if exists('b:did_ftplugin')
- finish
-endif
-let b:did_ftplugin = 1
-
-" No autoformatting, literal tabs
-setlocal noautoindent
-setlocal noexpandtab
-setlocal formatoptions=
-let b:undo_ftplugin = 'setlocal autoindent< expandtab< formatoptions<'
+" TSVs have the same filetype options as CSVs
+runtime! ftplugin/csv.vim