aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:25:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:26:11 +1200
commit8c27bd47b8345ca9825106633a1ae02b2c41b80a (patch)
treec76f8dd8d9242714562f16bf7332a2c0a81ca958
parentAdjust function visibility (diff)
downloadvim-digraph-search-8c27bd47b8345ca9825106633a1ae02b2c41b80a.tar.gz
vim-digraph-search-8c27bd47b8345ca9825106633a1ae02b2c41b80a.zip
Compact plugin load guard and map definition
-rw-r--r--plugin/digraph_search.vim8
1 files 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 <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)
+inoremap <silent> <Plug>(DigraphSearch)
\ <C-O>:call digraph_search#()<CR>