diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-12 13:02:43 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-12 13:03:13 +1200 |
commit | af2934671ead32055f0f8216ee7e9e18c2928a66 (patch) | |
tree | 65cec68a80d262f889ce243dec4bbbf4dd23c600 | |
parent | Merge branch 'hotfix/v0.6.2' into develop (diff) | |
download | vim-strip-trailing-whitespace-af2934671ead32055f0f8216ee7e9e18c2928a66.tar.gz vim-strip-trailing-whitespace-af2934671ead32055f0f8216ee7e9e18c2928a66.zip |
Parenthesize plugin map
-rw-r--r-- | doc/strip_trailing_whitespace.txt | 6 | ||||
-rw-r--r-- | plugin/strip_trailing_whitespace.vim | 2 |
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> |