make_target.vim : Make target for Makefile recipe under cursor
script karma |
Rating 6/5,
Downloaded by 746 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Tom Ryder |
|
script type |
ftplugin |
|
description |
This filetype plugin for Makefiles ("make" filetype) provides an autoload function make#target#Make() and buffer-local mapping <Plug>(MakeTarget) to make! the target for the recipe under the cursor, if it can be identified.
https://dev.sanctum.geek.nz/cgit/vim-make-target.git |
|
install details |
Put autoload/make/target.vim in ~/.vim/autoload/make/target.vim. The ftplugin itself should probably be saved as ~/.vim/after/ftplugin/make/target.vim (per the distribution layout) or ~/.vim/after/ftplugin/make_target.vim (if you prefer), so that it definitely loads *after* the primary make.vim plugin; or, just use your favourite Vim plugin manager.
There is no default key binding; to bind <LocalLeader>m, you could add this to after/ftplugin/make.vim:
nmap <buffer> <LocalLeader>m <Plug>(MakeTarget)
let b:undo_ftplugin .= '|nunmap <buffer> _m' |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|