1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:20:05 +08:00
SpaceVim/test/plugin/flygrep.vader
2023-08-09 22:39:23 +08:00

21 lines
619 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
let current_line = line('.')
Log getline('.')
for line in readfile('Makefile')
let lnr += 1
if line =~# 'COVIMERAGE'
break
endif
endfor
Log 'lnr is:' . lnr
AssertEqual lnr, current_line
unlet lnr line current_line