Open 3xp10it opened 8 years ago
my vimrc about incsearch and incsearch-fuzzy settings are in below,but it can not work like the gif when I try to fuzz search string like the gif does,can you help me?
""""""""""start of incsearch""""""""" map / (incsearch-forward) map ? (incsearch-backward) map g/ (incsearch-stay)
set hlsearch let g:incsearch#autonohlsearch = 1 map n (incsearch-nohl-n) map N (incsearch-nohl-N) map * (incsearch-nohl-) map # (incsearch-nohl-#) map g_ (incsearch-nohl-g*) map g# (incsearch-nohl-g#)
function! s:noregexp(pattern) abort return '\V' . escape(a:pattern, '\') endfunction
function! s:config() abort return {'converters': [function('s:noregexp')]} endfunction
noremap z/ incsearch#go(config()) """""""""end of incsearch""""""""""
"222222incsearch-fuzzy插件设置 "https://github.com/haya14busa/incsearch-fuzzy.vim "暂时因为看上去没有什么效果而没用它 """""""""start of incsearch-fuzzy""""""""" "fuzzy map z/ (incsearch-fuzzy-/) map z? (incsearch-fuzzy-?) map zg/ (incsearch-fuzzy-stay)
"fuzzyspell map z/ (incsearch-fuzzyspell-/) map z? (incsearch-fuzzyspell-?) map zg/ (incsearch-fuzzyspell-stay)
"Use both fuzzy & fuzzyspell feature function! s:config_fuzzyall(...) abort return extend(copy({ \ 'converters': [ \ incsearch#config#fuzzy#converter(), \ incsearch#config#fuzzyspell#converter() \ ], \ }), get(a:, 1, {})) endfunction noremap z/ incsearch#go(config_fuzzyall()) noremap z? incsearch#go(config_fuzzyall({'command': '?'})) noremap zg? incsearch#go(config_fuzzyall({'is_stay': 1}))
my vimrc about incsearch and incsearch-fuzzy settings are in below,but it can not work like the gif when I try to fuzz search string like the gif does,can you help me?
""""""""""start of incsearch""""""""" map /(incsearch-forward)
map ? (incsearch-backward)
map g/ (incsearch-stay)
set hlsearch let g:incsearch#autonohlsearch = 1 map n(incsearch-nohl-n)
map N (incsearch-nohl-N)
map * (incsearch-nohl- )
map # (incsearch-nohl-#)
map g_ (incsearch-nohl-g*)
map g# (incsearch-nohl-g#)
function! s:noregexp(pattern) abort return '\V' . escape(a:pattern, '\') endfunction
function! s:config() abort return {'converters': [function('s:noregexp')]} endfunction
noremap z/ incsearch#go(config())
"""""""""end of incsearch""""""""""
"222222incsearch-fuzzy插件设置 "https://github.com/haya14busa/incsearch-fuzzy.vim "暂时因为看上去没有什么效果而没用它 """""""""start of incsearch-fuzzy""""""""" "fuzzy map z/(incsearch-fuzzy-/)
map z? (incsearch-fuzzy-?)
map zg/ (incsearch-fuzzy-stay)
"fuzzyspell map z/(incsearch-fuzzyspell-/)
map z? (incsearch-fuzzyspell-?)
map zg/ (incsearch-fuzzyspell-stay)
"Use both fuzzy & fuzzyspell feature function! s:config_fuzzyall(...) abort return extend(copy({ \ 'converters': [ \ incsearch#config#fuzzy#converter(), \ incsearch#config#fuzzyspell#converter() \ ], \ }), get(a:, 1, {})) endfunction noremap z/ incsearch#go(config_fuzzyall())
noremap z? incsearch#go(config_fuzzyall({'command': '?'}))
noremap zg? incsearch#go(config_fuzzyall({'is_stay': 1}))