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

Maintain the current cursor's position and view in the vsplit/hsplit commands too #7220

Conversation

bnjbvr
Copy link
Contributor

@bnjbvr bnjbvr commented Jun 3, 2023

First of all, thanks for this editor; it's all I've ever wanted from nvim, without the configuration hassle.

I've been quite surprised to discover today that doing C-w C-v would keep the current cursor's position and view in document, while the :vsplit command would not do that and reset the cursor to the top of the screen. This PR implements a consistent behavior in both cases, which is that of C-w C-v which I personally find more pleasant.

…commands too

Signed-off-by: Benjamin Bouvier <public@benj.me>
@kirawi kirawi added C-enhancement Category: Improvements A-helix-term Area: Helix term improvements labels Jun 5, 2023
@bnjbvr
Copy link
Contributor Author

bnjbvr commented Aug 28, 2023

(closing to declutter my PR inbox, feel free to cherry-pick and merge if you still want it :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants