diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-28 22:13:17 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-28 22:13:17 +1200 |
commit | 6529dc5ef3cea4c929da150ee749ceb3d8b891bd (patch) | |
tree | 176cb5979479d14a161fac4fc0a9bb8be5485629 | |
parent | Merge branch 'release/v0.3.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-scroll-next-6529dc5ef3cea4c929da150ee749ceb3d8b891bd.tar.gz vim-scroll-next-6529dc5ef3cea4c929da150ee749ceb3d8b891bd.zip |
Merge branch 'release/v1.0.0'v1.0.0
* release/v1.0.0:
Refactor as expression mapping
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/scroll_next.vim | 4 | ||||
-rw-r--r-- | plugin/scroll_next.vim | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -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() |