aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--autoload/scroll_next.vim4
-rw-r--r--plugin/scroll_next.vim4
3 files changed, 5 insertions, 5 deletions
diff --git a/VERSION b/VERSION
index 0d91a54..3eefcb9 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.3.0
+1.0.0
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
diff --git a/plugin/scroll_next.vim b/plugin/scroll_next.vim
index 4535223..ae3f269 100644
--- a/plugin/scroll_next.vim
+++ b/plugin/scroll_next.vim
@@ -11,6 +11,6 @@ endif
let loaded_scroll_next = 1
" Mapping setup
-nnoremap <silent> <unique>
+nnoremap <expr> <silent> <unique>
\ <Plug>(ScrollNext)
- \ :<C-U>call scroll_next#ScrollNext()<CR>
+ \ scroll_next#ScrollNext()