aboutsummaryrefslogtreecommitdiff
path: root/plugin/vertical_region.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:14:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:14:56 +1200
commit1ccf6ca601381d88464c3956f71c83e8d7e39194 (patch)
tree8f4ff13f6df86c4a7e95974585ff9299d9e210cf /plugin/vertical_region.vim
parentMerge branch 'release/v1.1.0' (diff)
parentBump VERSION (diff)
downloadvim-vertical-region-1ccf6ca601381d88464c3956f71c83e8d7e39194.tar.gz
vim-vertical-region-1ccf6ca601381d88464c3956f71c83e8d7e39194.zip
Merge branch 'release/v1.2.0'v1.2.0
* release/v1.2.0: Update doc date Abbreviate load guard Use entry point function name
Diffstat (limited to 'plugin/vertical_region.vim')
-rw-r--r--plugin/vertical_region.vim17
1 files changed, 7 insertions, 10 deletions
diff --git a/plugin/vertical_region.vim b/plugin/vertical_region.vim
index eebcc72..f783302 100644
--- a/plugin/vertical_region.vim
+++ b/plugin/vertical_region.vim
@@ -7,24 +7,21 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_vertical_region') || &compatible
- finish
-endif
-if v:version < 700
+if exists('loaded_vertical_region') || &compatible || v:version < 700
finish
endif
let loaded_vertical_region = 1
" Define plugin maps
nnoremap <silent> <Plug>(VerticalRegionUp)
- \ :<C-U>call vertical_region#Map(v:count1, 1, 'n')<CR>
+ \ :<C-U>call vertical_region#(v:count1, 1, 'n')<CR>
nnoremap <silent> <Plug>(VerticalRegionDown)
- \ :<C-U>call vertical_region#Map(v:count1, 0, 'n')<CR>
+ \ :<C-U>call vertical_region#(v:count1, 0, 'n')<CR>
onoremap <silent> <Plug>(VerticalRegionUp)
- \ :<C-U>call vertical_region#Map(v:count1, 1, 'o')<CR>
+ \ :<C-U>call vertical_region#(v:count1, 1, 'o')<CR>
onoremap <silent> <Plug>(VerticalRegionDown)
- \ :<C-U>call vertical_region#Map(v:count1, 0, 'o')<CR>
+ \ :<C-U>call vertical_region#(v:count1, 0, 'o')<CR>
xnoremap <silent> <Plug>(VerticalRegionUp)
- \ :<C-U>call vertical_region#Map(v:count1, 1, 'x')<CR>
+ \ :<C-U>call vertical_region#(v:count1, 1, 'x')<CR>
xnoremap <silent> <Plug>(VerticalRegionDown)
- \ :<C-U>call vertical_region#Map(v:count1, 0, 'x')<CR>
+ \ :<C-U>call vertical_region#(v:count1, 0, 'x')<CR>