From 0070fb25de786508827a886f10493c5a7911088f Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 19 Nov 2019 20:20:03 +0800 Subject: [PATCH] Update plugin comfortable-motion settings --- plugins.vim | 7 +++++++ 1 file changed, 7 insertions(+) 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 :call comfortable_motion#flick(winheight(0) * 2) +nnoremap :call comfortable_motion#flick(winheight(0) * -2) +nnoremap :call comfortable_motion#flick(winheight(0) * 4) +nnoremap :call comfortable_motion#flick(winheight(0) * -4) + " Mouse settings noremap :call comfortable_motion#flick(40) noremap :call comfortable_motion#flick(-40)