aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/csv.vim8
-rw-r--r--vim/ftplugin/password.vim8
-rw-r--r--vim/ftplugin/tsv.vim8
3 files changed, 24 insertions, 0 deletions
diff --git a/vim/ftplugin/csv.vim b/vim/ftplugin/csv.vim
new file mode 100644
index 00000000..7242f766
--- /dev/null
+++ b/vim/ftplugin/csv.vim
@@ -0,0 +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
new file mode 100644
index 00000000..a09bac47
--- /dev/null
+++ b/vim/ftplugin/password.vim
@@ -0,0 +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
new file mode 100644
index 00000000..d98386a6
--- /dev/null
+++ b/vim/ftplugin/tsv.vim
@@ -0,0 +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<'