mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 05:20:04 +08:00
parent
abf0581a66
commit
8144d4d838
@ -67,10 +67,18 @@ endfunction
|
|||||||
let s:si_flag = 0
|
let s:si_flag = 0
|
||||||
function! s:update_search_index(key) abort
|
function! s:update_search_index(key) abort
|
||||||
if a:key == 'n'
|
if a:key == 'n'
|
||||||
normal! n
|
if mapcheck("<Plug>(incsearch-nohl-n)") !=# ''
|
||||||
|
call feedkeys("\<Plug>(incsearch-nohl-n)")
|
||||||
|
else
|
||||||
|
normal! n
|
||||||
|
endif
|
||||||
normal! ml
|
normal! ml
|
||||||
elseif a:key == 'N'
|
elseif a:key == 'N'
|
||||||
normal! N
|
if mapcheck("<Plug>(incsearch-nohl-n)") !=# ''
|
||||||
|
call feedkeys("\<Plug>(incsearch-nohl-N)")
|
||||||
|
else
|
||||||
|
normal! N
|
||||||
|
endif
|
||||||
normal! ml
|
normal! ml
|
||||||
endif
|
endif
|
||||||
if s:si_flag == 0
|
if s:si_flag == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user