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 +++++++++++++++-------------------------------- 1 file changed, 15 insertions(+), 32 deletions(-) (limited to 'doc') 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* -- cgit v1.2.3