diff options
| author | jdhao <jdhao@hotmail.com> | 2019-11-19 20:20:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-19 20:20:03 +0800 |
| commit | 0070fb25de786508827a886f10493c5a7911088f (patch) | |
| tree | 63165ff6d2b15a3c1378176fd4011e2169c713f1 /plugins.vim | |
| parent | 62ea9fbdc073bacaaa1dbbd9769b39e5947f795d (diff) | |
Update plugin comfortable-motion settings
Diffstat (limited to 'plugins.vim')
| -rw-r--r-- | plugins.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins.vim b/plugins.vim index 3d3ba3f..704f202 100644 --- a/plugins.vim +++ b/plugins.vim @@ -901,6 +901,13 @@ let g:quickrun_config = {'outputter/buffer/close_on_empty': 1} let g:comfortable_motion_scroll_down_key = 'j' let g:comfortable_motion_scroll_up_key = 'k' +let g:comfortable_motion_no_default_key_mappings = 1 +" scroll based on window height +nnoremap <silent> <C-d> :call comfortable_motion#flick(winheight(0) * 2)<CR> +nnoremap <silent> <C-u> :call comfortable_motion#flick(winheight(0) * -2)<CR> +nnoremap <silent> <C-f> :call comfortable_motion#flick(winheight(0) * 4)<CR> +nnoremap <silent> <C-b> :call comfortable_motion#flick(winheight(0) * -4)<CR> + " Mouse settings noremap <silent> <ScrollWheelDown> :call comfortable_motion#flick(40)<CR> noremap <silent> <ScrollWheelUp> :call comfortable_motion#flick(-40)<CR> |
