aboutsummaryrefslogtreecommitdiff
path: root/plugin/vertical_region.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-14 00:02:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-14 00:03:32 +1200
commit90464d16c45015f673570c7dd2a8b9646595c94e (patch)
treed8aa95c84f0aa428885195b5b21d88b50e662580 /plugin/vertical_region.vim
parentMerge branch 'release/v1.3.0' (diff)
downloadvim-vertical-region-90464d16c45015f673570c7dd2a8b9646595c94e.tar.gz
vim-vertical-region-90464d16c45015f673570c7dd2a8b9646595c94e.zip
Revert "Use :map then :sunmap to abbreviate nox...
This reverts commit 25060d8. Breaks visual and operator-pending mode, which should have been obvious.
Diffstat (limited to 'plugin/vertical_region.vim')
-rw-r--r--plugin/vertical_region.vim14
1 files changed, 10 insertions, 4 deletions
diff --git a/plugin/vertical_region.vim b/plugin/vertical_region.vim
index ced14d0..f783302 100644
--- a/plugin/vertical_region.vim
+++ b/plugin/vertical_region.vim
@@ -13,9 +13,15 @@ endif
let loaded_vertical_region = 1
" Define plugin maps
-noremap <silent> <Plug>(VerticalRegionUp)
+nnoremap <silent> <Plug>(VerticalRegionUp)
\ :<C-U>call vertical_region#(v:count1, 1, 'n')<CR>
-sunmap <Plug>(VerticalRegionUp)
-noremap <silent> <Plug>(VerticalRegionDown)
+nnoremap <silent> <Plug>(VerticalRegionDown)
\ :<C-U>call vertical_region#(v:count1, 0, 'n')<CR>
-sunmap <Plug>(VerticalRegionDown)
+onoremap <silent> <Plug>(VerticalRegionUp)
+ \ :<C-U>call vertical_region#(v:count1, 1, 'o')<CR>
+onoremap <silent> <Plug>(VerticalRegionDown)
+ \ :<C-U>call vertical_region#(v:count1, 0, 'o')<CR>
+xnoremap <silent> <Plug>(VerticalRegionUp)
+ \ :<C-U>call vertical_region#(v:count1, 1, 'x')<CR>
+xnoremap <silent> <Plug>(VerticalRegionDown)
+ \ :<C-U>call vertical_region#(v:count1, 0, 'x')<CR>