aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-12 13:02:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-12 13:03:13 +1200
commitaf2934671ead32055f0f8216ee7e9e18c2928a66 (patch)
tree65cec68a80d262f889ce243dec4bbbf4dd23c600
parentMerge branch 'hotfix/v0.6.2' into develop (diff)
downloadvim-strip-trailing-whitespace-af2934671ead32055f0f8216ee7e9e18c2928a66.tar.gz
vim-strip-trailing-whitespace-af2934671ead32055f0f8216ee7e9e18c2928a66.zip
Parenthesize plugin map
-rw-r--r--doc/strip_trailing_whitespace.txt6
-rw-r--r--plugin/strip_trailing_whitespace.vim2
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/strip_trailing_whitespace.txt b/doc/strip_trailing_whitespace.txt
index 93a4d89..8ee64f3 100644
--- a/doc/strip_trailing_whitespace.txt
+++ b/doc/strip_trailing_whitespace.txt
@@ -28,12 +28,12 @@ This plugin is only available if 'compatible' is not set.
MAPPINGS *strip_trailing_whitespace-mappings*
- *<Plug>StripTrailingWhitespace*
-The single mapping target provided is |<Plug>StripTrailingWhitespace|,
+ *<Plug>(StripTrailingWhitespace)*
+The single mapping target provided is |<Plug>(StripTrailingWhitespace)|,
mappable in any mode. There is no default key mapping to the target; you
should define this yourself in your |vimrc|. For example:
>
- nmap <Leader>x <Plug>StripTrailingWhitespace
+ nmap <Leader>x <Plug>(StripTrailingWhitespace)
<
AUTHOR *strip_trailing_whitespace-author*
diff --git a/plugin/strip_trailing_whitespace.vim b/plugin/strip_trailing_whitespace.vim
index f3e01c0..de08fae 100644
--- a/plugin/strip_trailing_whitespace.vim
+++ b/plugin/strip_trailing_whitespace.vim
@@ -91,5 +91,5 @@ endfunction
" Create mapping proxy to the function just defined
nnoremap <silent> <unique>
- \ <Plug>StripTrailingWhitespace
+ \ <Plug>(StripTrailingWhitespace)
\ :<C-U>call <SID>StripTrailingWhitespace()<CR>