From 882c4b191292de7ef78cff1b7de0d3efb6b93b7e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:14:05 +1200 Subject: Use entry point function name --- autoload/vertical_region.vim | 2 +- plugin/vertical_region.vim | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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/plugin/vertical_region.vim b/plugin/vertical_region.vim index eebcc72..cd7caa1 100644 --- a/plugin/vertical_region.vim +++ b/plugin/vertical_region.vim @@ -17,14 +17,14 @@ let loaded_vertical_region = 1 " Define plugin maps nnoremap (VerticalRegionUp) - \ :call vertical_region#Map(v:count1, 1, 'n') + \ :call vertical_region#(v:count1, 1, 'n') nnoremap (VerticalRegionDown) - \ :call vertical_region#Map(v:count1, 0, 'n') + \ :call vertical_region#(v:count1, 0, 'n') onoremap (VerticalRegionUp) - \ :call vertical_region#Map(v:count1, 1, 'o') + \ :call vertical_region#(v:count1, 1, 'o') onoremap (VerticalRegionDown) - \ :call vertical_region#Map(v:count1, 0, 'o') + \ :call vertical_region#(v:count1, 0, 'o') xnoremap (VerticalRegionUp) - \ :call vertical_region#Map(v:count1, 1, 'x') + \ :call vertical_region#(v:count1, 1, 'x') xnoremap (VerticalRegionDown) - \ :call vertical_region#Map(v:count1, 0, 'x') + \ :call vertical_region#(v:count1, 0, 'x') -- cgit v1.2.3 From 65249b137e9adfa2bd3f730051597d8845e0d646 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:14:12 +1200 Subject: Abbreviate load guard --- plugin/vertical_region.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/vertical_region.vim b/plugin/vertical_region.vim index cd7caa1..f783302 100644 --- a/plugin/vertical_region.vim +++ b/plugin/vertical_region.vim @@ -7,10 +7,7 @@ " Author: Tom Ryder " 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 -- cgit v1.2.3 From 9d8c7475aa7d65ced393f51c0545269b40879c47 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:14:32 +1200 Subject: Update doc date --- doc/vertical_region.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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* -- cgit v1.2.3 From 3c6daa4934260ea671bb81625f68e01b0ba36da6 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:14:51 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 9084fa2..26aaba0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.0 +1.2.0 -- cgit v1.2.3