aboutsummaryrefslogtreecommitdiff
path: root/autoload/scroll_next.vim
blob: cb40a1851716b988aee96dc8b3928fa8a7c0fc62 (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('$')
    return ":\<C-U>next\<CR>"
  else
    return "\<PageDown>"
  endif
endfunction