blob: 8338e3454aea77e34cfeaed23fb4278d2c664950 (plain
*make_target.txt* For Vim version 7.0 Last change: 2018 June 28
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.
This plugin is only available if 'compatible' is not set. It requires Vim 7.0
or newer. It won't load at all if you have `g:no_plugin_maps` or
The |map-local| mapping `<Plug>(MakeTarget)` attempts to identify the target or
targets for the recipe under the cursor, and runs `make!` in sequence on each
of those targets.
There is no default key binding; to bind `<LocalLeader>m`, you could add this
nmap <buffer> <LocalLeader>m <Plug>(MakeTarget)
let b:undo_ftplugin .= '|nunmap <buffer> _m'
The |autoload| function used by |<Plug>(MakeTarget)| is accessible as
`make#target#Make()` if wanted. It's hardcoded to look for the target under
Written and maintained by Tom Ryder <firstname.lastname@example.org>.
Licensed for distribution under the same terms as Vim itself (see |license|).