aboutsummaryrefslogtreecommitdiff
path: root/autoload/scroll_next.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-28 22:11:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-28 22:12:17 +1200
commit4eb142f620c6e4bf9ecb59401fae110084508775 (patch)
treed2d843162b6d43b5a935f227366cf5ed5708fb31 /autoload/scroll_next.vim
parentMerge branch 'release/v0.3.0' into develop (diff)
downloadvim-scroll-next-4eb142f620c6e4bf9ecb59401fae110084508775.tar.gz
vim-scroll-next-4eb142f620c6e4bf9ecb59401fae110084508775.zip
Refactor as expression mapping
This makes any errors from :next work in a more natural way.
Diffstat (limited to 'autoload/scroll_next.vim')
-rw-r--r--autoload/scroll_next.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/scroll_next.vim b/autoload/scroll_next.vim
index 8758208..cb40a18 100644
--- a/autoload/scroll_next.vim
+++ b/autoload/scroll_next.vim
@@ -2,8 +2,8 @@
" page forward with PageDown
function! scroll_next#ScrollNext() abort
if line('w$') == line('$')
- silent! next
+ return ":\<C-U>next\<CR>"
else
- execute "normal! \<PageDown>"
+ return "\<PageDown>"
endif
endfunction