diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-14 22:44:45 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-14 22:44:45 +1200 |
commit | fe93144dc341f42feb5da17450d46f6f5809fc7a (patch) | |
tree | 2954a51670ed88d688b2c08173393e2265c64f60 /vim/ftplugin/tsv.vim | |
parent | Add explanatory comment on Vim indent ftplugin (diff) | |
download | dotfiles-fe93144dc341f42feb5da17450d46f6f5809fc7a.tar.gz dotfiles-fe93144dc341f42feb5da17450d46f6f5809fc7a.zip |
Spruce up CSV and TSV Vim filetype scripts
Diffstat (limited to 'vim/ftplugin/tsv.vim')
-rw-r--r-- | vim/ftplugin/tsv.vim | 13 |
1 files changed, 2 insertions, 11 deletions
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 |