diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-01 16:54:29 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-01 16:54:29 +1200 |
commit | d79cb0392451afb3959ea4a254e2834e469db407 (patch) | |
tree | affc35be8ee1bdf88a3d0dcd3628cf1a45a2f3f6 /Makefile | |
parent | Correct comment spelling in .vimrc (diff) | |
download | dotfiles-d79cb0392451afb3959ea4a254e2834e469db407.tar.gz dotfiles-d79cb0392451afb3959ea4a254e2834e469db407.zip |
Support nested dirs in two Vim runtime subdirs
~/.vim/after/ftplugin and ~/.vim/autoload, specifically.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -509,8 +509,11 @@ install-vim-after: install-vim-after-ftplugin \ install-vim-after-syntax install-vim-after-ftplugin: - mkdir -p $(VIMDIR)/after/ftplugin - cp -p -- vim/after/ftplugin/*.vim $(VIMDIR)/after/ftplugin + find vim/after/ftplugin/* \ + -type d -exec sh -c \ + 'mkdir -p -- $(VIMDIR)/"$${1#vim/}"' _ {} \; \ + -o -type f -exec sh -c \ + 'cp -p -- "$$1" $(VIMDIR)/"$${1#vim/}"' _ {} \; install-vim-after-indent: mkdir -p $(VIMDIR)/after/indent @@ -525,8 +528,11 @@ install-vim-after-syntax: cp -p -- vim/after/syntax/*.vim $(VIMDIR)/after/syntax install-vim-autoload: - mkdir -p -- $(VIMDIR)/autoload - cp -p -- vim/autoload/*.vim $(VIMDIR)/autoload + find vim/autoload/* \ + -type d -exec sh -c \ + 'mkdir -p -- $(VIMDIR)/"$${1#vim/}"' _ {} \; \ + -o -type f -exec sh -c \ + 'cp -p -- "$$1" $(VIMDIR)/"$${1#vim/}"' _ {} \; install-vim-bundle: install-vim-config find vim/bundle/*/* \ |