diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-12-18 17:05:08 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-12-18 17:05:08 +1300 |
commit | 4a4341936d2911820abddd67882f9b867496abbb (patch) | |
tree | 39378e9e5c72cac5fa3015895aca205951664bf7 /Makefile | |
parent | Merge branch 'release/v8.5.0' into develop (diff) | |
download | dotfiles-4a4341936d2911820abddd67882f9b867496abbb.tar.gz dotfiles-4a4341936d2911820abddd67882f9b867496abbb.zip |
Put common indent setting patterns in macros
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -546,6 +546,7 @@ install-vim: install-vim-after \ install-vim-filetype \ install-vim-ftplugin \ install-vim-indent \ + install-vim-macros \ install-vim-plugin \ install-vim-syntax @@ -558,7 +559,7 @@ install-vim-after-ftplugin: install-vim-compiler mkdir -p $(VIMDIR)/after/ftplugin cp -p -- vim/after/ftplugin/*.vim $(VIMDIR)/after/ftplugin -install-vim-after-indent: +install-vim-after-indent: install-vim-macros mkdir -p $(VIMDIR)/after/indent cp -p -- vim/after/indent/*.vim $(VIMDIR)/after/indent @@ -618,6 +619,14 @@ install-vim-indent: mkdir -p -- $(VIMDIR)/indent cp -p -- vim/indent/*.vim $(VIMDIR)/indent +install-vim-macros: + find vim/macros \ + -type d -exec sh -c \ + 'mkdir -p -- $(VIMDIR)/"$${1#vim/}"' _ {} \; \ + -o \ + -type f -exec sh -c \ + 'cp -p -- "$$1" $(VIMDIR)/"$${1#vim/}"' _ {} \; + install-vim-plugin: install-vim-autoload mkdir -p -- $(VIMDIR)/plugin cp -p -- vim/plugin/*.vim $(VIMDIR)/plugin |