mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:20:03 +08:00
18 lines
523 B
Plaintext
18 lines
523 B
Plaintext
Execute ( SpaceVim plugin: flygrep ):
|
|
edit Makefile
|
|
let g:_spacevim_input_list = ["\<C-u>", 'C', 'O', 'V', 'I', 'M', 'E', 'R', 'A', 'G', 'E', "\<Enter>"]
|
|
let g:_spacevim_input_timeout = 400
|
|
exe 'call SpaceVim#plugins#flygrep#open('
|
|
\ . '{"input" : expand("<cword>"), "files": bufname("%")}'
|
|
\ . ')'
|
|
let g:_spacevim_input_timeout = 0
|
|
let lnr = 0
|
|
for line in readfile('Makefile')
|
|
let lnr += 1
|
|
if line =~# 'COVIMERAGE'
|
|
break
|
|
endif
|
|
endfor
|
|
AssertEqual lnr, 4
|
|
unlet lnr line
|