Skip to content

Instantly share code, notes, and snippets.



Last active Dec 15, 2017
What would you like to do?
renderoptions 用の画面スクロール用のベンチマークスクリプト
scriptencoding utf-8
function! s:benchmark() abort "{{{
normal !gg
call timer_start(0, function('s:callback', [reltime(), line('$')]), {'repeat': -1})
endfunction "}}}
function! s:callback(time, lines, timer) abort "{{{
if line('.') < a:lines
execute 'normal!' "\<C-f>"
echomsg reltimestr(reltime(a:time))
call timer_stop(a:timer)
endfunction "}}}
command! -nargs=0 ScrollBench call s:benchmark()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.