mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:40:03 +08:00
Fix highlight
This commit is contained in:
parent
ce5333c795
commit
b5df733e54
@ -152,6 +152,7 @@ function! s:start_replace() abort
|
|||||||
if !empty(replace_text)
|
if !empty(replace_text)
|
||||||
call SpaceVim#plugins#iedit#start({'expr' : replace_text}, line('w0'), line('w$'))
|
call SpaceVim#plugins#iedit#start({'expr' : replace_text}, line('w0'), line('w$'))
|
||||||
endif
|
endif
|
||||||
|
let s:hi_id = matchadd('FlyGrepPattern', '\c' . join(split(replace_text), '\|'), 1)
|
||||||
redrawstatus
|
redrawstatus
|
||||||
endfunction
|
endfunction
|
||||||
" }}}
|
" }}}
|
||||||
|
@ -4,5 +4,5 @@ endif
|
|||||||
let b:current_syntax = "SpaceVimFlyGrep"
|
let b:current_syntax = "SpaceVimFlyGrep"
|
||||||
syntax case ignore
|
syntax case ignore
|
||||||
|
|
||||||
|
syn match FileName /[^:]*:\d\+:\d\+:/
|
||||||
hi def link FileName Comment
|
hi def link FileName Comment
|
||||||
call matchadd('FileName', '[^:]*:\d\+:\d\+:', 2)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user