Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<c-u> and <c-d> did not scroll exactly half page in tmux pane #30

Open
nanangarsyad opened this issue Apr 7, 2018 · 1 comment
Open

Comments

@nanangarsyad
Copy link

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

@openjck
Copy link

openjck commented Jul 6, 2020

I can confirm that <c-u> and <c-d> scroll than more than half a page for me, but it happens to me whether or not I'm inside tmux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants