Six icon indicating copy to clipboard operation
Six copied to clipboard

Functionality similar to set scrolloff=999

Open rozling opened this issue 6 years ago • 2 comments

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?

rozling avatar Aug 10 '18 11:08 rozling

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.

guillermooo avatar Aug 10 '18 17:08 guillermooo

That works great, thanks!!

rozling avatar Aug 10 '18 19:08 rozling