aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:46:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:46:04 +1200
commit5bb6574c4b416dbf235d008f45927c79560355a7 (patch)
treecddbd5278c747e3f272d05189f28730924300dc7 /vim/ftplugin
parentb393311059b4911308184523564e3cf7fb3e5f67 (diff)
downloaddotfiles-5bb6574c4b416dbf235d008f45927c79560355a7.tar.gz
dotfiles-5bb6574c4b416dbf235d008f45927c79560355a7.zip
Add comments to vim ftplugins
Diffstat (limited to 'vim/ftplugin')
-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<'