aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins.vim7
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>