diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 10:55:27 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 10:55:27 +1200 |
commit | 8238405d96e500be5c2eedfa638e94e58cc56ac7 (patch) | |
tree | 03929a9aff551cb1a81101ac171c2d7932e68605 | |
parent | Merge branch 'release/v0.3.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-colon-operator-8238405d96e500be5c2eedfa638e94e58cc56ac7.tar.gz vim-colon-operator-8238405d96e500be5c2eedfa638e94e58cc56ac7.zip |
Merge branch 'release/v0.4.0'v0.4.0
* release/v0.4.0:
Remove unneeded variable scoping
Switch to two-spacing
Correct documented mode of single mapping
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | doc/colon_operator.txt | 8 | ||||
-rw-r--r-- | plugin/colon_operator.vim | 4 |
4 files changed, 10 insertions, 10 deletions
@@ -2,14 +2,14 @@ colon\_operator.vim =================== This plugin provides a mapping target to use an Ex command as an operator, in a -way repeatable with the `.` (dot) operator. This allows you to, for example, +way repeatable with the `.` (dot) operator. This allows you to, for example, `:sort` a text object like a paragraph, and then repeat it on another -paragraph. Think of it as the `:` analogue to the `!` motion. +paragraph. Think of it as the `:` analogue to the `!` motion. License ------- -Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself. +Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself. See `:help license`. [1]: https://sanctum.geek.nz/ @@ -1 +1 @@ -0.3.0 +0.4.0 diff --git a/doc/colon_operator.txt b/doc/colon_operator.txt index 4ec620b..f8d2b34 100644 --- a/doc/colon_operator.txt +++ b/doc/colon_operator.txt @@ -3,9 +3,9 @@ DESCRIPTION *colon_operator* This plugin provides a mapping target to use an Ex command as an operator, in -a way repeatable with the |.| (dot) operator. This allows you to, for example, +a way repeatable with the |.| (dot) operator. This allows you to, for example, |:sort| a text object like a paragraph, and then repeat it on another -paragraph. Think of it as the |:| analogue to the |!| motion. +paragraph. Think of it as the |:| analogue to the |!| motion. REQUIREMENTS *colon_operator-requirements* @@ -14,8 +14,8 @@ This plugin only loads if 'compatible' is not set. MAPPINGS *colon_operator-mappings* *<Plug>(ColonOperator)* -The single insert mode mapping target is |<Plug>(ColonOperator)|. There is no -default key mapping; you should define one yourself in your |vimrc|. For +The single normal mode mapping target is |<Plug>(ColonOperator)|. There is no +default key mapping; you should define one yourself in your |vimrc|. For example: > nmap g: <Plug>(ColonOperator) diff --git a/plugin/colon_operator.vim b/plugin/colon_operator.vim index ea0cc46..5a30115 100644 --- a/plugin/colon_operator.vim +++ b/plugin/colon_operator.vim @@ -5,13 +5,13 @@ " Author: Tom Ryder <tom@sanctum.geek.nz> " License: Same as Vim itself " -if exists('g:loaded_colon_operator') || &compatible +if exists('loaded_colon_operator') || &compatible finish endif if v:version < 700 finish endif -let g:loaded_colon_operator = 1 +let loaded_colon_operator = 1 " Set up mapping nnoremap <expr> <silent> <unique> |