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 | |
parent | Merge branch 'release/v1.1.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-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
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/vertical_region.vim | 2 | ||||
-rw-r--r-- | doc/vertical_region.txt | 2 | ||||
-rw-r--r-- | plugin/vertical_region.vim | 17 |
4 files changed, 10 insertions, 13 deletions
@@ -1 +1 @@ -1.1.0 +1.2.0 diff --git a/autoload/vertical_region.vim b/autoload/vertical_region.vim index 1c8567d..b877ca3 100644 --- a/autoload/vertical_region.vim +++ b/autoload/vertical_region.vim @@ -1,5 +1,5 @@ " Autoloaded function for vertical_region.vim maps -function! vertical_region#Map(count, up, mode) abort +function! vertical_region#(count, up, mode) abort " Reselect any selection if a:mode ==# 'x' diff --git a/doc/vertical_region.txt b/doc/vertical_region.txt index c0c873f..4837ecd 100644 --- a/doc/vertical_region.txt +++ b/doc/vertical_region.txt @@ -1,4 +1,4 @@ -*vertical_region.txt* For Vim version 7.0 Last change: 2018 Aug 10 +*vertical_region.txt* For Vim version 7.0 Last change: 2019 May 29 DESCRIPTION *vertical_region* 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> |