diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-28 22:11:42 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-28 22:12:17 +1200 |
commit | 4eb142f620c6e4bf9ecb59401fae110084508775 (patch) | |
tree | d2d843162b6d43b5a935f227366cf5ed5708fb31 /plugin | |
parent | Merge branch 'release/v0.3.0' into develop (diff) | |
download | vim-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 'plugin')
-rw-r--r-- | plugin/scroll_next.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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() |