diff options
Diffstat (limited to 'autoload/scroll_next.vim')
-rw-r--r-- | autoload/scroll_next.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/autoload/scroll_next.vim b/autoload/scroll_next.vim new file mode 100644 index 0000000..8758208 --- /dev/null +++ b/autoload/scroll_next.vim @@ -0,0 +1,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 |