From d5b2fa650926b2d810c2f8204c5c3330789b75ce Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:34:05 +1200 Subject: Adjust quoting for legibility --- autoload/colon_operator.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/colon_operator.vim b/autoload/colon_operator.vim index 1469e95..e5918d1 100644 --- a/autoload/colon_operator.vim +++ b/autoload/colon_operator.vim @@ -4,7 +4,7 @@ function! colon_operator#Operatorfunc(type) abort if !exists('s:command') let s:command = input('g:', '', 'command') endif - execute '''[,'']'.s:command + execute "'[,']".s:command endfunction " Clear command so that we get prompted to input it, set operator function, -- cgit v1.2.3 From 3d9b57820428e79a1021bc5780b39cd1117d1548 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:34:32 +1200 Subject: Abbreviate load guard --- plugin/colon_operator.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/colon_operator.vim b/plugin/colon_operator.vim index 5a30115..d2df540 100644 --- a/plugin/colon_operator.vim +++ b/plugin/colon_operator.vim @@ -5,10 +5,7 @@ " Author: Tom Ryder " License: Same as Vim itself " -if exists('loaded_colon_operator') || &compatible - finish -endif -if v:version < 700 +if exists('loaded_colon_operator') || &compatible || v:version < 700 finish endif let loaded_colon_operator = 1 -- cgit v1.2.3 From b78db85144fdc1c80bf922fe71864453b45da741 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:34:53 +1200 Subject: Adjust function scoping --- autoload/colon_operator.vim | 2 +- plugin/colon_operator.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/colon_operator.vim b/autoload/colon_operator.vim index e5918d1..34689ef 100644 --- a/autoload/colon_operator.vim +++ b/autoload/colon_operator.vim @@ -9,7 +9,7 @@ endfunction " Clear command so that we get prompted to input it, set operator function, " and return motions to run it -function! colon_operator#Map() abort +function! colon_operator#() abort unlet! s:command set operatorfunc=colon_operator#Operatorfunc return 'g@' diff --git a/plugin/colon_operator.vim b/plugin/colon_operator.vim index d2df540..3379d04 100644 --- a/plugin/colon_operator.vim +++ b/plugin/colon_operator.vim @@ -13,4 +13,4 @@ let loaded_colon_operator = 1 " Set up mapping nnoremap \ (ColonOperator) - \ colon_operator#Map() + \ colon_operator#() -- cgit v1.2.3 From 182ebfa8f523333aab621cbd109b0d5ffae6c947 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:35:01 +1200 Subject: Remove unneeded map attributes --- plugin/colon_operator.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/colon_operator.vim b/plugin/colon_operator.vim index 3379d04..cf547e7 100644 --- a/plugin/colon_operator.vim +++ b/plugin/colon_operator.vim @@ -11,6 +11,5 @@ endif let loaded_colon_operator = 1 " Set up mapping -nnoremap - \ (ColonOperator) +nnoremap (ColonOperator) \ colon_operator#() -- cgit v1.2.3 From 807b9636ae5603f115454e6d1bc97a0d3206efb2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:35:31 +1200 Subject: Update docs --- doc/colon_operator.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/colon_operator.txt b/doc/colon_operator.txt index f8d2b34..865ef0e 100644 --- a/doc/colon_operator.txt +++ b/doc/colon_operator.txt @@ -1,4 +1,4 @@ -*colon_operator.txt* For Vim version 7.0 Last change: 2018 July 24 +*colon_operator.txt* For Vim version 7.0 Last change: 2019 May 29 DESCRIPTION *colon_operator* -- cgit v1.2.3 From 9970827a20d4ba575ee40a24b7a9ac26ccd1dff0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:35:54 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 1d0ba9e..8f0916f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.0 +0.5.0 -- cgit v1.2.3