From c00622ab9e0be59d8ac4b6b8f6e366e0bfa8e337 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:25:21 +1200 Subject: Adjust function visibility --- autoload/digraph_search.vim | 6 +++--- plugin/digraph_search.vim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/digraph_search.vim b/autoload/digraph_search.vim index 46b10a3..bae4973 100644 --- a/autoload/digraph_search.vim +++ b/autoload/digraph_search.vim @@ -1,5 +1,5 @@ " Search for digraphs -function! digraph_search#Search() abort +function! digraph_search#() abort " Get the search string let search = input('Digraph search: ') @@ -9,7 +9,7 @@ function! digraph_search#Search() abort " Look for the uppercased search in the table let results = [] - for digraph in digraph_search#Digraphs() + for digraph in s:Digraphs() if stridx(digraph['name'], toupper(search)) != -1 call add(results, digraph) endif @@ -31,7 +31,7 @@ function! digraph_search#Search() abort endfunction " Get private memoized list of digraph dictionary objects -function! digraph_search#Digraphs() abort +function! s:Digraphs() abort " We haven't been called yet; get the digraph list if !exists('s:digraphs') diff --git a/plugin/digraph_search.vim b/plugin/digraph_search.vim index 1923eb2..9daeba2 100644 --- a/plugin/digraph_search.vim +++ b/plugin/digraph_search.vim @@ -16,4 +16,4 @@ let loaded_digraph_search = 1 " Set up mapping inoremap \ (DigraphSearch) - \ :call digraph_search#Search() + \ :call digraph_search#() -- cgit v1.2.3 From 8c27bd47b8345ca9825106633a1ae02b2c41b80a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:25:40 +1200 Subject: Compact plugin load guard and map definition --- plugin/digraph_search.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugin/digraph_search.vim b/plugin/digraph_search.vim index 9daeba2..beaab41 100644 --- a/plugin/digraph_search.vim +++ b/plugin/digraph_search.vim @@ -5,15 +5,11 @@ " Author: Tom Ryder " License: Same as Vim itself " -if exists('loaded_digraph_search') || &compatible - finish -endif -if !has('digraphs') || v:version < 700 +if exists('loaded_digraph_search') || &compatible || v:version < 700 finish endif let loaded_digraph_search = 1 " Set up mapping -inoremap - \ (DigraphSearch) +inoremap (DigraphSearch) \ :call digraph_search#() -- cgit v1.2.3 From 227b8a7a31dee449028c428c17da614b621ec61f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:27:29 +1200 Subject: Update documentation --- doc/digraph_search.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/digraph_search.txt b/doc/digraph_search.txt index c94eb05..d5bf622 100644 --- a/doc/digraph_search.txt +++ b/doc/digraph_search.txt @@ -1,4 +1,4 @@ -*digraph_search.txt* For Vim version 7.0 Last change: 2018 July 14 +*digraph_search.txt* For Vim version 7.0 Last change: 2019 May 29 DESCRIPTION *digraph_search* @@ -10,8 +10,7 @@ you can't remember the digraph pieces. REQUIREMENTS *digraph_search-requirements* -This plugin only loads if 'compatible' is not set. It requires the -|+digraphs| feature, of course. +This plugin only loads if 'compatible' is not set. MAPPINGS *digraph_search-mappings* @@ -31,4 +30,3 @@ LICENSE *digraph_search-license* Licensed for distribution under the same terms as Vim itself (see |license|). vim:tw=78:ts=8:ft=help:norl: - -- cgit v1.2.3 From 0d8b94e3c416a6caab37fd2aae43cbbc119c79ba Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:27:47 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 0ea3a94..3eefcb9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 +1.0.0 -- cgit v1.2.3