diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 13:14:56 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 13:14:56 +1200 |
commit | 1ccf6ca601381d88464c3956f71c83e8d7e39194 (patch) | |
tree | 8f4ff13f6df86c4a7e95974585ff9299d9e210cf /plugin | |
parent | Merge branch 'release/v1.1.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-vertical-region-1.2.0.tar.gz (sig) vim-vertical-region-1.2.0.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')
-rw-r--r-- | plugin/vertical_region.vim | 17 |
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> |