blob: 8338e3454aea77e34cfeaed23fb4278d2c664950 (
plain) (
tree)
|
|
*make_target.txt* For Vim version 7.0 Last change: 2018 June 28
DESCRIPTION *make_target*
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.
REQUIREMENTS *make_target-requirements*
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
`g:no_make_maps` set.
MAPPINGS *make_target-mappings*
*<Plug>(MakeTarget)*
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
to `after/ftplugin/make.vim`:
>
nmap <buffer> <LocalLeader>m <Plug>(MakeTarget)
let b:undo_ftplugin .= '|nunmap <buffer> _m'
<
FUNCTIONS *make_target-functions*
*make#target#Make()*
The |autoload| function used by |<Plug>(MakeTarget)| is accessible as
`make#target#Make()` if wanted. It's hardcoded to look for the target under
the cursor.
AUTHOR *make_target-author*
Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.
LICENSE *make_target-license*
Licensed for distribution under the same terms as Vim itself (see |license|).
vim:tw=78:ts=8:ft=help:norl:
|