aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-10 13:19:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-10 13:19:02 +1200
commit5cab92f941d31c588d1b8734f2e8e2b078603821 (patch)
treeeee7887fb9a14b49e961f86846d1b1bbef0d1fc7 /vim/ftplugin
parentf36ef6745c3c96914eb7be228125c1d53bf70287 (diff)
downloaddotfiles-5cab92f941d31c588d1b8734f2e8e2b078603821.tar.gz
dotfiles-5cab92f941d31c588d1b8734f2e8e2b078603821.zip
Clean up existing ftplugins a bit
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/csv.vim6
-rw-r--r--vim/ftplugin/password.vim2
-rw-r--r--vim/ftplugin/tsv.vim6
3 files changed, 9 insertions, 5 deletions
diff --git a/vim/ftplugin/csv.vim b/vim/ftplugin/csv.vim
index 7242f766..58edfffe 100644
--- a/vim/ftplugin/csv.vim
+++ b/vim/ftplugin/csv.vim
@@ -3,6 +3,8 @@ if exists('b:did_ftplugin')
finish
endif
-" No autoformatting for CSVs
+" No autoformatting, literal tabs
+setlocal noautoindent
+setlocal noexpandtab
setlocal formatoptions=
-let b:undo_ftplugin = 'setlocal formatoptions<'
+let b:undo_ftplugin = 'setlocal autoindent< expandtab< formatoptions<'
diff --git a/vim/ftplugin/password.vim b/vim/ftplugin/password.vim
index a09bac47..04658423 100644
--- a/vim/ftplugin/password.vim
+++ b/vim/ftplugin/password.vim
@@ -3,6 +3,6 @@ if exists('b:did_ftplugin')
finish
endif
-" No autoformatting for password files
+" No autoformatting
setlocal formatoptions=
let b:undo_ftplugin = 'setlocal formatoptions<'
diff --git a/vim/ftplugin/tsv.vim b/vim/ftplugin/tsv.vim
index d98386a6..58edfffe 100644
--- a/vim/ftplugin/tsv.vim
+++ b/vim/ftplugin/tsv.vim
@@ -3,6 +3,8 @@ if exists('b:did_ftplugin')
finish
endif
-" No autoformatting for TSVs
+" No autoformatting, literal tabs
+setlocal noautoindent
+setlocal noexpandtab
setlocal formatoptions=
-let b:undo_ftplugin = 'setlocal formatoptions<'
+let b:undo_ftplugin = 'setlocal autoindent< expandtab< formatoptions<'