aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-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>