aboutsummaryrefslogtreecommitdiff
path: root/autoload/scroll_next.vim
blob: 87582088abf72320855326fb0fe72729125df43e (plain) (blame)
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