aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--doc/make_target.txt20
2 files changed, 5 insertions, 17 deletions
diff --git a/VERSION b/VERSION
index 6d7de6e..9084fa2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.2
+1.1.0
diff --git a/doc/make_target.txt b/doc/make_target.txt
index bc8157e..b57b836 100644
--- a/doc/make_target.txt
+++ b/doc/make_target.txt
@@ -19,23 +19,11 @@ 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; you could do this in your `.vimrc` to bind
-`_m`, for example:
+There is no default key binding; to bind `<LocalLeader>m`, you could add this
+to `after/ftplugin/make.vim`:
>
- autocmd FileType make
- \ 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:
->
- let g:maplocalleader = '_'
- augroup vimrc_filemap
- autocmd!
- autocmd FileType *
- \ silent! nmapclear <buffer> <LocalLeader>m
- autocmd FileType make
- \ nmap <buffer> <LocalLeader>m <Plug>(MakeTarget)
- augroup END
+ nmap <buffer> <LocalLeader>m <Plug>(MakeTarget)
+ let b:undo_ftplugin .= '|nunmap <buffer> _m'
<
FUNCTIONS *make_target-functions*