aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:36:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:36:03 +1200
commit915fe15069acbe3f4021a998344eeda921ea1cd9 (patch)
treeb5d809442be9fbb02706e274836ff80cbdb23687
parent8238405d96e500be5c2eedfa638e94e58cc56ac7 (diff)
parent9970827a20d4ba575ee40a24b7a9ac26ccd1dff0 (diff)
downloadvim-colon-operator-master.tar.gz
vim-colon-operator-master.zip
Merge branch 'release/v0.5.0'HEADv0.5.0master
* release/v0.5.0: Update docs Remove unneeded map attributes Adjust function scoping Abbreviate load guard Adjust quoting for legibility
-rw-r--r--VERSION2
-rw-r--r--autoload/colon_operator.vim4
-rw-r--r--doc/colon_operator.txt2
-rw-r--r--plugin/colon_operator.vim10
4 files changed, 7 insertions, 11 deletions
diff --git a/VERSION b/VERSION
index 1d0ba9e..8f0916f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.4.0
+0.5.0
diff --git a/autoload/colon_operator.vim b/autoload/colon_operator.vim
index 1469e95..34689ef 100644
--- a/autoload/colon_operator.vim
+++ b/autoload/colon_operator.vim
@@ -4,12 +4,12 @@ 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,
" and return <expr> 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/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*
diff --git a/plugin/colon_operator.vim b/plugin/colon_operator.vim
index 5a30115..cf547e7 100644
--- a/plugin/colon_operator.vim
+++ b/plugin/colon_operator.vim
@@ -5,15 +5,11 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" 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
" Set up mapping
-nnoremap <expr> <silent> <unique>
- \ <Plug>(ColonOperator)
- \ colon_operator#Map()
+nnoremap <expr> <Plug>(ColonOperator)
+ \ colon_operator#()