You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I just found out that this plugin didn't scroll exactly half page of the screen when I pressed <c-u> or <c-d>. But this weird behavior only happened when I ran vim inside tmux pane.
Here's my vim configuration for this plugin.
" To prevent the plugin from defining those default key mappings
let g:comfortable_motion_no_default_key_mappings = 0
" mouse wheel to scroll a window by the following mappings:
noremap <silent> <ScrollWheelDown> :call comfortable_motion#flick(40)<CR>
noremap <silent> <ScrollWheelUp> :call comfortable_motion#flick(-40)<CR>
" Scrolling proportional to the window height, you may use settings such as these:
let g:comfortable_motion_impulse_multiplier = 1 " Feel free to increase/decrease this value.
nnoremap <silent> <C-d> :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * 2)<CR>
nnoremap <silent> <C-u> :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * -2)<CR>
nnoremap <silent> <C-f> :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * 4)<CR>
nnoremap <silent> <C-b> :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * -4)<CR>
Thank you
The text was updated successfully, but these errors were encountered:
Recently I just found out that this plugin didn't scroll exactly half page of the screen when I pressed
<c-u>
or<c-d>
. But this weird behavior only happened when I ran vim inside tmux pane.Here's my vim configuration for this plugin.
Thank you
The text was updated successfully, but these errors were encountered: