diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-10 13:19:02 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-10 13:19:02 +1200 |
commit | 5cab92f941d31c588d1b8734f2e8e2b078603821 (patch) | |
tree | eee7887fb9a14b49e961f86846d1b1bbef0d1fc7 | |
parent | Overhaul after/ftplugin (diff) | |
download | dotfiles-5cab92f941d31c588d1b8734f2e8e2b078603821.tar.gz dotfiles-5cab92f941d31c588d1b8734f2e8e2b078603821.zip |
Clean up existing ftplugins a bit
-rw-r--r-- | vim/ftplugin/csv.vim | 6 | ||||
-rw-r--r-- | vim/ftplugin/password.vim | 2 | ||||
-rw-r--r-- | vim/ftplugin/tsv.vim | 6 |
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<' |