aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-28 11:03:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-28 11:03:27 +1200
commit60af46618acc83bed88450bbbb3fbf9d6a1312d3 (patch)
treea1bcc41a250b64597093fcfc3d76696127aac1cf
parentUpdate two Vim plugins (diff)
downloaddotfiles-60af46618acc83bed88450bbbb3fbf9d6a1312d3.tar.gz
dotfiles-60af46618acc83bed88450bbbb3fbf9d6a1312d3.zip
Add and configure make_target.vim ftplugin
-rw-r--r--.gitmodules3
m---------vim/bundle/make_target0
-rw-r--r--vim/filemap.vim4
3 files changed, 7 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 46810091..88144a99 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -20,6 +20,9 @@
[submodule "vim/bundle/insert_suspend_hlsearch"]
path = vim/bundle/insert_suspend_hlsearch
url = https://sanctum.geek.nz/code/vim-insert-suspend-hlsearch.git
+[submodule "vim/bundle/make_target"]
+ path = vim/bundle/make_target
+ url = https://sanctum.geek.nz/code/vim-make-target.git
[submodule "vim/bundle/markdown_autoformat"]
path = vim/bundle/markdown_autoformat
url = https://sanctum.geek.nz/code/vim-markdown-autoformat.git
diff --git a/vim/bundle/make_target b/vim/bundle/make_target
new file mode 160000
+Subproject 186591c1201ffd4f204781a2989e0d7049786d4
diff --git a/vim/filemap.vim b/vim/filemap.vim
index bbbf1955..d20a2037 100644
--- a/vim/filemap.vim
+++ b/vim/filemap.vim
@@ -25,6 +25,10 @@ augroup filetypemap
\|nmap <buffer> <LocalLeader>r <Plug>HtmlUrlLink
\|nmap <buffer> <LocalLeader>t <Plug>HtmlTidy
+ " Makefile: make target
+ autocmd FileType make
+ \ nmap <buffer> <LocalLeader>m <Plug>MakeTarget
+
" Perl: check, lint, and tidy
autocmd FileType perl
\ nmap <buffer> <LocalLeader>c <Plug>PerlCheck