aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/ftplugin/csv.vim3
-rw-r--r--vim/ftplugin/password.vim3
-rw-r--r--vim/ftplugin/tsv.vim3
3 files changed, 9 insertions, 0 deletions
diff --git a/vim/ftplugin/csv.vim b/vim/ftplugin/csv.vim
index c8937bba..7242f766 100644
--- a/vim/ftplugin/csv.vim
+++ b/vim/ftplugin/csv.vim
@@ -1,5 +1,8 @@
+" Only do this when not yet done for this buffer
if exists('b:did_ftplugin')
finish
endif
+
+" No autoformatting for CSVs
setlocal formatoptions=
let b:undo_ftplugin = 'setlocal formatoptions<'
diff --git a/vim/ftplugin/password.vim b/vim/ftplugin/password.vim
index c8937bba..a09bac47 100644
--- a/vim/ftplugin/password.vim
+++ b/vim/ftplugin/password.vim
@@ -1,5 +1,8 @@
+" Only do this when not yet done for this buffer
if exists('b:did_ftplugin')
finish
endif
+
+" No autoformatting for password files
setlocal formatoptions=
let b:undo_ftplugin = 'setlocal formatoptions<'
diff --git a/vim/ftplugin/tsv.vim b/vim/ftplugin/tsv.vim
index c8937bba..d98386a6 100644
--- a/vim/ftplugin/tsv.vim
+++ b/vim/ftplugin/tsv.vim
@@ -1,5 +1,8 @@
+" Only do this when not yet done for this buffer
if exists('b:did_ftplugin')
finish
endif
+
+" No autoformatting for TSVs
setlocal formatoptions=
let b:undo_ftplugin = 'setlocal formatoptions<'