diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 13:25:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 13:26:11 +1200 |
commit | 8c27bd47b8345ca9825106633a1ae02b2c41b80a (patch) | |
tree | c76f8dd8d9242714562f16bf7332a2c0a81ca958 | |
parent | Adjust function visibility (diff) | |
download | vim-digraph-search-8c27bd47b8345ca9825106633a1ae02b2c41b80a.tar.gz vim-digraph-search-8c27bd47b8345ca9825106633a1ae02b2c41b80a.zip |
Compact plugin load guard and map definition
-rw-r--r-- | plugin/digraph_search.vim | 8 |
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> |