1 2 3 4 5 6 7 8 9
" Check visibility of last line and flick to :next if appropriate, or just " page forward with PageDown function! scroll_next#ScrollNext() abort if line('w$') == line('$') silent! next else execute "normal! \<PageDown>" endif endfunction