1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 07:10:05 +08:00
SpaceVim/test/plugin/flygrep.vader

20 lines
633 B
Plaintext
Raw Normal View History

2022-04-22 19:54:47 +08:00
Execute ( SpaceVim plugin: flygrep ):
runtime autoload/SpaceVim.vim
2022-04-22 19:54:47 +08:00
edit Makefile
let g:_spacevim_input_list = ["\<C-u>", 'b', 'u', 'i', 'l', 'd', '/', 'v', 'a', 'd', 'e', 'r', ':', "\<Enter>"]
2022-04-22 19:54:47 +08:00
let g:_spacevim_input_timeout = 400
exe 'call SpaceVim#plugins#flygrep#open({"input" : expand("<cword>"), "files": bufname("%")})'
2022-04-22 19:54:47 +08:00
let g:_spacevim_input_timeout = 0
let lnr = 0
2023-08-09 03:43:53 +08:00
let current_line = line('.')
2023-08-09 22:39:23 +08:00
Log getline('.')
2022-04-22 19:54:47 +08:00
for line in readfile('Makefile')
let lnr += 1
if line =~# 'build/vader:'
2022-04-22 19:54:47 +08:00
break
endif
endfor
2023-08-09 22:39:23 +08:00
Log 'lnr is:' . lnr
2023-08-09 03:43:53 +08:00
AssertEqual lnr, current_line
unlet lnr line current_line