aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:27:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:27:56 +1200
commit005fb8c6e4042e8eca2af224b9ada2d61824f9b5 (patch)
tree641580d79f407cc77b5a983b61323ee91933d63a
parentMerge branch 'release/v0.2.0' (diff)
parentBump VERSION (diff)
downloadvim-digraph-search-005fb8c6e4042e8eca2af224b9ada2d61824f9b5.tar.gz
vim-digraph-search-005fb8c6e4042e8eca2af224b9ada2d61824f9b5.zip
Merge branch 'release/v1.0.0'v1.0.0
* release/v1.0.0: Update documentation Compact plugin load guard and map definition Adjust function visibility
-rw-r--r--VERSION2
-rw-r--r--autoload/digraph_search.vim6
-rw-r--r--doc/digraph_search.txt6
-rw-r--r--plugin/digraph_search.vim10
4 files changed, 9 insertions, 15 deletions
diff --git a/VERSION b/VERSION
index 0ea3a94..3eefcb9 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.2.0
+1.0.0
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/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:
-
diff --git a/plugin/digraph_search.vim b/plugin/digraph_search.vim
index 1923eb2..beaab41 100644
--- a/plugin/digraph_search.vim
+++ b/plugin/digraph_search.vim
@@ -5,15 +5,11 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" 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 <silent> <unique>
- \ <Plug>(DigraphSearch)
- \ <C-O>:call digraph_search#Search()<CR>
+inoremap <silent> <Plug>(DigraphSearch)
+ \ <C-O>:call digraph_search#()<CR>