diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 11:29:32 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 11:29:32 +1300 |
commit | f8af47bc44386b18bc9d854219e20ebf3820bd43 (patch) | |
tree | 573e53556298e0a3f8acae2afe0fb0b95d623ccc | |
parent | Move netrw.vim "after" script to plain config (diff) | |
download | dotfiles-f8af47bc44386b18bc9d854219e20ebf3820bd43.tar.gz dotfiles-f8af47bc44386b18bc9d854219e20ebf3820bd43.zip |
Move vim/after/ftdetect to vim/ftdetect
There's no particular reason to run these file detection rules after the
plugins have run, so we'll put them in a more expected directory.
I've created a new Makefile target to install this,
`install-vim-ftdetect`, which is included as a prerequisite of the
`install-vim` target.
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | vim/ftdetect/muttrc.vim (renamed from vim/after/ftdetect/muttrc.vim) | 0 | ||||
-rw-r--r-- | vim/ftdetect/sh.vim (renamed from vim/after/ftdetect/sh.vim) | 0 | ||||
-rw-r--r-- | vim/ftdetect/xdefaults.vim (renamed from vim/after/ftdetect/xdefaults.vim) | 0 |
4 files changed, 6 insertions, 0 deletions
@@ -38,6 +38,7 @@ install-urxvt \ install-vim \ install-vim-config \ + install-vim-ftdetect \ install-vim-gui \ install-vim-gui-config \ install-vim-plugins \ @@ -463,6 +464,7 @@ install-urxvt: urxvt/ext/select -exec cp -p -- {} $(HOME)/.urxvt/ext \; install-vim: install-vim-config \ + install-vim-ftdetect \ install-vim-plugins install-vim-config: @@ -470,6 +472,10 @@ install-vim-config: cp -p -- vim/vimrc $(HOME)/.vimrc cp -p -- vim/config/*.vim $(HOME)/.vim/config +install-vim-ftdetect: + mkdir -p -- $(HOME)/.vim/ftdetect + cp -p -- vim/ftdetect/*.vim $(HOME)/.vim/ftdetect + install-vim-gui: install-vim \ install-vim-gui-config diff --git a/vim/after/ftdetect/muttrc.vim b/vim/ftdetect/muttrc.vim index ff3776b5..ff3776b5 100644 --- a/vim/after/ftdetect/muttrc.vim +++ b/vim/ftdetect/muttrc.vim diff --git a/vim/after/ftdetect/sh.vim b/vim/ftdetect/sh.vim index f2bc0df2..f2bc0df2 100644 --- a/vim/after/ftdetect/sh.vim +++ b/vim/ftdetect/sh.vim diff --git a/vim/after/ftdetect/xdefaults.vim b/vim/ftdetect/xdefaults.vim index f0ee7b81..f0ee7b81 100644 --- a/vim/after/ftdetect/xdefaults.vim +++ b/vim/ftdetect/xdefaults.vim |