*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 `(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* *(MakeTarget)* The |map-local| mapping `(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 `m`, you could add this to `after/ftplugin/make.vim`: > nmap m (MakeTarget) let b:undo_ftplugin .= '|nunmap _m' < FUNCTIONS *make_target-functions* *make#target#Make()* The |autoload| function used by |(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 . LICENSE *make_target-license* Licensed for distribution under the same terms as Vim itself (see |license|). vim:tw=78:ts=8:ft=help:norl: