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

Center screen after scrolling #46

Open
MinmoTech opened this issue Dec 11, 2022 · 0 comments
Open

Center screen after scrolling #46

MinmoTech opened this issue Dec 11, 2022 · 0 comments

Comments

@MinmoTech
Copy link

I would like to center the screen after scrolling (which I got from this video), but the following mapping does not work:

let g:smoothie_no_default_mappings = 1
nnoremap <unique> <C-d> <cmd>call smoothie#do("\<C-d>") <CR>zz
vnoremap <unique> <C-d> <cmd>call smoothie#do("\<C-d>") <CR>zz
nnoremap <unique> <C-u> <cmd>call smoothie#do("\<C-u>") <CR>zz
vnoremap <unique> <C-u> <cmd>call smoothie#do("\<C-u>") <CR>zz

I think it's because vim-smoothie's scrolling happens after the centering.

Is there a workaround/fix for this? :)

Thanks for any help already!

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

1 participant