From d5d1b651020dea1ab73dfcf3befef7d17616974c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 30 Dec 2018 00:34:43 +1300 Subject: Remove unneeded mode strings from map targets --- doc/vertical_region.txt | 47 +++++++++++++++------------------------------- plugin/vertical_region.vim | 12 ++++++------ 2 files changed, 21 insertions(+), 38 deletions(-) diff --git a/doc/vertical_region.txt b/doc/vertical_region.txt index cc07b5d..892d8be 100644 --- a/doc/vertical_region.txt +++ b/doc/vertical_region.txt @@ -13,44 +13,27 @@ This plugin only loads if 'compatible' is not set. MAPPINGS *vertical_region-mappings* -Six mappings are provided: +Two mapping targets are provided. They can be mapped in normal, +operator-pending, and visual mode, and accept a [count] prefix to move by more +than one matching line. - *(VerticalRegionUpNormal)* -`(VerticalRegionUpNormal)` moves up to the previous line with non-space -characters before or in the current column, in normal mode. + *(VerticalRegionUp)* +`(VerticalRegionUp)` moves up to the previous line with non-space +characters before or in the current column. - *(VerticalRegionDownNormal)* -`(VerticalRegionDownNormal)` moves down to the next line with non-space -characters before or in the current column, in normal mode. - - *(VerticalRegionUpOperator)* -`(VerticalRegionUpOperator)` moves up to the previous line with -non-space characters before or in the current column, in visual mode. - - *(VerticalRegionDownOperator)* -`(VerticalRegionDownOperator)` moves down to the next line with -non-space characters before or in the current column, in operating-pending -mode. - - *(VerticalRegionUpVisual)* -`(VerticalRegionUpVisual)` moves up to the previous line with non-space -characters before or in the current column, in visual mode. - - *(VerticalRegionDownVisual)* -`(VerticalRegionDownVisual)` moves down to the next line with non-space -characters before or in the current column, in visual mode. - -All of them accept a [count] prefix to move by more than one matching line. + *(VerticalRegionDown)* +`(VerticalRegionDown)` moves down to the previous line with non-space +characters before or in the current column. There are no default key mappings; you should define those yourself in your |vimrc|. Here are the author's choices, using \{ and \} in all three modes: > - nmap { (VerticalRegionUpNormal) - nmap } (VerticalRegionDownNormal) - omap { (VerticalRegionUpOperator) - omap } (VerticalRegionDownOperator) - xmap { (VerticalRegionUpVisual) - xmap } (VerticalRegionDownVisual) + nmap { (VerticalRegionUp) + nmap } (VerticalRegionDown) + omap { (VerticalRegionUp) + omap } (VerticalRegionDown) + xmap { (VerticalRegionUp) + xmap } (VerticalRegionDown) < AUTHOR *vertical_region-author* diff --git a/plugin/vertical_region.vim b/plugin/vertical_region.vim index e54bbb0..c1fc56f 100644 --- a/plugin/vertical_region.vim +++ b/plugin/vertical_region.vim @@ -16,15 +16,15 @@ endif let g:loaded_vertical_region = 1 " Define plugin maps -nnoremap (VerticalRegionUpNormal) +nnoremap (VerticalRegionUp) \ :call vertical_region#Map(v:count1, 1, 'n') -nnoremap (VerticalRegionDownNormal) +nnoremap (VerticalRegionDown) \ :call vertical_region#Map(v:count1, 0, 'n') -onoremap (VerticalRegionUpOperator) +onoremap (VerticalRegionUp) \ :call vertical_region#Map(v:count1, 1, 'o') -onoremap (VerticalRegionDownOperator) +onoremap (VerticalRegionDown) \ :call vertical_region#Map(v:count1, 0, 'o') -xnoremap (VerticalRegionUpVisual) +xnoremap (VerticalRegionUp) \ :call vertical_region#Map(v:count1, 1, 'x') -xnoremap (VerticalRegionDownVisual) +xnoremap (VerticalRegionDown) \ :call vertical_region#Map(v:count1, 0, 'x') -- cgit v1.2.3 From 194e19f6f6a601a3db53b4c04f62afb0563832ed Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 30 Dec 2018 00:38:34 +1300 Subject: Two-space sentences in documentation --- README.md | 2 +- doc/vertical_region.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 855a464..ebb9146 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ specify structure. 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/ diff --git a/doc/vertical_region.txt b/doc/vertical_region.txt index 892d8be..c0c873f 100644 --- a/doc/vertical_region.txt +++ b/doc/vertical_region.txt @@ -13,7 +13,7 @@ This plugin only loads if 'compatible' is not set. MAPPINGS *vertical_region-mappings* -Two mapping targets are provided. They can be mapped in normal, +Two mapping targets are provided. They can be mapped in normal, operator-pending, and visual mode, and accept a [count] prefix to move by more than one matching line. @@ -26,7 +26,7 @@ characters before or in the current column. characters before or in the current column. There are no default key mappings; you should define those yourself in your -|vimrc|. Here are the author's choices, using \{ and \} in all three modes: +|vimrc|. Here are the author's choices, using \{ and \} in all three modes: > nmap { (VerticalRegionUp) nmap } (VerticalRegionDown) -- cgit v1.2.3 From b1eff393d64c288de7981b779fa499ce7bd2f035 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 30 Dec 2018 00:39:15 +1300 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d917d3e..3eefcb9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.2 +1.0.0 -- cgit v1.2.3