aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:32:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:34:04 +1200
commitb10c1bcb87f52abb08ad34979f74f95826b3ac88 (patch)
tree89ee504659444cd13d5a86d58a8a8394cbd9b19b
parentbe4189de5c70bc092518c1fe26efa960b7a4d3f6 (diff)
downloaddotfiles-b10c1bcb87f52abb08ad34979f74f95826b3ac88.tar.gz
dotfiles-b10c1bcb87f52abb08ad34979f74f95826b3ac88.zip
Add CSV, TSV, and password file filetypes
-rw-r--r--Makefile12
-rw-r--r--vim/ftplugin/csv.vim5
-rw-r--r--vim/ftplugin/password.vim5
-rw-r--r--vim/ftplugin/tsv.vim5
4 files changed, 24 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 668df86b..7be5bc33 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,7 @@
install-vim-compiler \
install-vim-config \
install-vim-filetype \
+ install-vim-ftplugin \
install-vim-gui \
install-vim-gui-config \
install-vim-indent \
@@ -499,6 +500,7 @@ install-vim: install-vim-after \
install-vim-compiler \
install-vim-config \
install-vim-filetype \
+ install-vim-ftplugin \
install-vim-indent
install-vim-after: install-vim-after-ftplugin \
@@ -545,9 +547,9 @@ install-vim-config:
install-vim-filetype:
cp -p -- vim/filetype.vim vim/scripts.vim $(VIMDIR)
-install-vim-indent:
- mkdir -p -- $(VIMDIR)/indent
- cp -p -- vim/indent/*.vim $(VIMDIR)/indent
+install-vim-ftplugin:
+ mkdir -p -- $(VIMDIR)/ftplugin
+ cp -p -- vim/ftplugin/*.vim $(VIMDIR)/ftplugin
install-vim-gui: install-vim \
install-vim-gui-config
@@ -555,6 +557,10 @@ install-vim-gui: install-vim \
install-vim-gui-config:
cp -p -- vim/gvimrc $(HOME)/.gvimrc
+install-vim-indent:
+ mkdir -p -- $(VIMDIR)/indent
+ cp -p -- vim/indent/*.vim $(VIMDIR)/indent
+
install-vim-plugin:
mkdir -p -- $(VIMDIR)/plugin
cp -p -- vim/plugin/*.vim $(VIMDIR)/plugin
diff --git a/vim/ftplugin/csv.vim b/vim/ftplugin/csv.vim
new file mode 100644
index 00000000..c8937bba
--- /dev/null
+++ b/vim/ftplugin/csv.vim
@@ -0,0 +1,5 @@
+if exists('b:did_ftplugin')
+ finish
+endif
+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..c8937bba
--- /dev/null
+++ b/vim/ftplugin/password.vim
@@ -0,0 +1,5 @@
+if exists('b:did_ftplugin')
+ finish
+endif
+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..c8937bba
--- /dev/null
+++ b/vim/ftplugin/tsv.vim
@@ -0,0 +1,5 @@
+if exists('b:did_ftplugin')
+ finish
+endif
+setlocal formatoptions=
+let b:undo_ftplugin = 'setlocal formatoptions<'