do not set hls
global when searching
- otherwise may conflict with user preferences - closes #68
This commit is contained in:
parent
139498855b
commit
08caedc2b7
@ -7,9 +7,10 @@ func! vundle#scripts#all(bang, ...)
|
|||||||
else
|
else
|
||||||
let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:1,'"').'"')
|
let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:1,'"').'"')
|
||||||
call s:display(info + ['"Search results for: '.a:1], matches)
|
call s:display(info + ['"Search results for: '.a:1], matches)
|
||||||
|
if &hls
|
||||||
|
" TODO: search doesn't get highlighted for me
|
||||||
let @/=a:1
|
let @/=a:1
|
||||||
" TODO: highlight doesn't work
|
endif
|
||||||
setl hls
|
|
||||||
let b:match = a:1
|
let b:match = a:1
|
||||||
endif
|
endif
|
||||||
redraw!
|
redraw!
|
||||||
@ -36,7 +37,7 @@ func! vundle#scripts#install() abort
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
func! vundle#scripts#setup_view() abort
|
func! vundle#scripts#setup_view() abort
|
||||||
setl hls ro noma ignorecase syntax=vim
|
setl ro noma ignorecase syntax=vim
|
||||||
|
|
||||||
syn keyword vimCommand Bundle
|
syn keyword vimCommand Bundle
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user