1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 06:00:05 +08:00
SpaceVim/test/plugin/flygrep.vader
2024-03-21 18:25:14 +08:00

20 lines
633 B
Plaintext

Execute ( SpaceVim plugin: flygrep ):
runtime autoload/SpaceVim.vim
edit Makefile
let g:_spacevim_input_list = ["\<C-u>", 'b', 'u', 'i', 'l', 'd', '/', 'v', 'a', 'd', 'e', 'r', ':', "\<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 =~# 'build/vader:'
break
endif
endfor
Log 'lnr is:' . lnr
AssertEqual lnr, current_line
unlet lnr line current_line