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

Functionality similar to set scrolloff=999 #219

Open
rozling opened this issue Aug 10, 2018 · 2 comments
Open

Functionality similar to set scrolloff=999 #219

rozling opened this issue Aug 10, 2018 · 2 comments
Labels
Milestone

Comments

@rozling
Copy link

rozling commented Aug 10, 2018

Thanks for this plugin!

I'm wondering if it's possible to achieve centred scrolling with six?

It's possible to get halfway there with the Typewriter plugin's typewriter scrolling mode, however once you enter normal mode with Six the cursor no longer stays in the centre of the screen.

I realise that set commands are not implemented at the moment, but maybe there is a way for Six to play nice with Typewriter?

@guillermooo guillermooo added enhancement question area:motions Issues related to any motion. labels Aug 10, 2018
@guillermooo
Copy link
Owner

The closest and simplest thing possible now that comes to mind is to remap some commands such as:

:nmap j jzz
:nmap k kzz

You can persist such mappings using a sixrc.py file as described in the documentation.

I hope in the future more advanced things are possible (maybe they already are by applying a bit of ingenuity), but it will be some time before I focus on settings such as scrolloff.

@rozling
Copy link
Author

rozling commented Aug 10, 2018

That works great, thanks!!

@guillermooo guillermooo added this to the Maybe later milestone Aug 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants