"============================================================================= " FILE: plugin/incsearch/fuzzy.vim " AUTHOR: haya14busa " License: MIT license "============================================================================= scriptencoding utf-8 if expand('%:p') ==# expand(':p') unlet! g:loaded_incsearch_fuzzy endif if exists('g:loaded_incsearch_fuzzy') finish endif let g:loaded_incsearch_fuzzy = 1 let s:save_cpo = &cpo set cpo&vim function! s:config_fuzzy(...) abort return incsearch#config#fuzzy#make(get(a:, 1, {})) endfunction function! s:config_fuzzyword(...) abort return incsearch#config#fuzzyword#make(get(a:, 1, {})) endfunction function! s:config_fuzzyspell(...) abort return incsearch#config#fuzzyspell#make(get(a:, 1, {})) endfunction noremap (incsearch-fuzzy-/) incsearch#go(config_fuzzy()) noremap (incsearch-fuzzy-?) incsearch#go(config_fuzzy({'command': '?'})) noremap (incsearch-fuzzy-stay) incsearch#go(config_fuzzy({'is_stay': 1})) noremap (incsearch-fuzzyword-/) incsearch#go(config_fuzzyword()) noremap (incsearch-fuzzyword-?) incsearch#go(config_fuzzyword({'command': '?'})) noremap (incsearch-fuzzyword-stay) incsearch#go(config_fuzzyword({'is_stay': 1})) noremap (incsearch-fuzzyspell-/) incsearch#go(config_fuzzyspell()) noremap (incsearch-fuzzyspell-?) incsearch#go(config_fuzzyspell({'command': '?'})) noremap (incsearch-fuzzyspell-stay) incsearch#go(config_fuzzyspell({'is_stay': 1})) let &cpo = s:save_cpo unlet s:save_cpo " __END__ " vim: expandtab softtabstop=2 shiftwidth=2 foldmethod=marker