diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-19 22:46:14 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-19 22:46:14 +1300 |
commit | 83ab42988ea599fdda31df9460b8c13f3a7aa1f1 (patch) | |
tree | 4bdf5c3d8d8349220a65a634079ef9045995e239 /Makefile | |
parent | Add :lwindow support to Perl check/lint (diff) | |
download | dotfiles-83ab42988ea599fdda31df9460b8c13f3a7aa1f1.tar.gz dotfiles-83ab42988ea599fdda31df9460b8c13f3a7aa1f1.zip |
Use :compiler scripts for makeprg setup
I didn't know about :compiler until now. From :help
write-compiler-plugin:
> A compiler plugin sets options for use with a specific compiler. The
> user can load it with the |:compiler| command. The main use is to set
> the 'errorformat' and 'makeprg' options.
Vim even has "perl" and "tidy" compilers already that seem to work
really well. I'll just add in my own and install them.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -44,6 +44,7 @@ install-vim-after-syntax \ install-vim-autoload \ install-vim-bundle \ + install-vim-compiler \ install-vim-config \ install-vim-ftdetect \ install-vim-gui \ @@ -495,6 +496,7 @@ install-urxvt: urxvt/ext/select install-vim: install-vim-after \ install-vim-autoload \ install-vim-bundle \ + install-vim-compiler \ install-vim-config \ install-vim-doc \ install-vim-ftdetect \ @@ -529,6 +531,10 @@ install-vim-bundle: install-vim-config -type d -exec sh -c 'mkdir -p -- $(HOME)/."$$1"' _ {} \; -o \ -type f -exec sh -c 'cp -p -- "$$1" $(HOME)/."$$1"' _ {} \; +install-vim-compiler: + mkdir -p -- $(HOME)/.vim/compiler + cp -p -- vim/compiler/*.vim $(HOME)/.vim/compiler + install-vim-config: mkdir -p -- $(HOME)/.vim/config cp -p -- vim/vimrc $(HOME)/.vimrc |