aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--after/ftplugin/make/target.vim2
-rw-r--r--doc/make_target.txt12
3 files changed, 8 insertions, 8 deletions
diff --git a/VERSION b/VERSION
index 0ea3a94..3eefcb9 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.2.0
+1.0.0
diff --git a/after/ftplugin/make/target.vim b/after/ftplugin/make/target.vim
index dc1663a..daab321 100644
--- a/after/ftplugin/make/target.vim
+++ b/after/ftplugin/make/target.vim
@@ -23,7 +23,7 @@ let b:undo_ftplugin = b:undo_ftplugin
" Define normal mode mapping target
nnoremap <buffer> <silent> <unique>
- \ <Plug>MakeTarget
+ \ <Plug>(MakeTarget)
\ :<C-U>call make#target#Make()<CR>
let b:undo_ftplugin = b:undo_ftplugin
\ . '|nunmap <buffer> <Plug>MakeTarget'
diff --git a/doc/make_target.txt b/doc/make_target.txt
index 65078ea..bc8157e 100644
--- a/doc/make_target.txt
+++ b/doc/make_target.txt
@@ -3,7 +3,7 @@
DESCRIPTION *make_target*
This filetype plugin for Makefiles ("make" filetype) provides an autoload
-function `make#target#Make()` and buffer-local mapping `<Plug>MakeTarget` to
+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*
@@ -14,8 +14,8 @@ or newer. It won't load at all if you have `g:no_plugin_maps` or
MAPPINGS *make_target-mappings*
- *<Plug>MakeTarget*
-The |map-local| mapping `<Plug>MakeTarget` attempts to identify the target or
+ *<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.
@@ -23,7 +23,7 @@ There is no default key binding; you could do this in your `.vimrc` to bind
`_m`, for example:
>
autocmd FileType make
- \ nmap <buffer> _m <Plug>MakeTarget
+ \ nmap <buffer> _m <Plug>(MakeTarget)
<
A cleaner and more complete implementation that correctly clears the group on
reload and the mapping on filetype switch might be:
@@ -34,13 +34,13 @@ reload and the mapping on filetype switch might be:
autocmd FileType *
\ silent! nmapclear <buffer> <LocalLeader>m
autocmd FileType make
- \ nmap <buffer> <LocalLeader>m <Plug>MakeTarget
+ \ nmap <buffer> <LocalLeader>m <Plug>(MakeTarget)
augroup END
<
FUNCTIONS *make_target-functions*
*make#target#Make()*
-The |autoload| function used by |<Plug>MakeTarget| is accessible as
+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.