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

Support for visual mode #13

Open
ghost opened this issue Apr 10, 2017 · 3 comments
Open

Support for visual mode #13

ghost opened this issue Apr 10, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 10, 2017

Breaks on visual mode.
e.g. vnoremap <silent> <c-d> :call comfortable_motion#flick(100)<cr>.

@yuttie
Copy link
Owner

yuttie commented Sep 6, 2017

@lfmet I have confirmed the problem.

Unfortunately, I don't have any idea to solve this issue for now.

@amarqueslee
Copy link
Contributor

amarqueslee commented Oct 12, 2017

Based on my own testing, I understand "break" here to mean "when I select something and try to scroll the cursor off the screen, the cursor follows me and expands my visual selection".

I did an hour or so of research and experimentation just now to find a way to encourage the cursor to stay where it is as you scroll. But as far as I can tell from both the vim manual and from Q&A threads on Stack Overflow, it seems that 'cursor stays on screen' is kind of a rule of Vim UX philosophy. It seems that the NeoVim team has also avoided it.

Personally, I don't see a way that we can easily make this work like other text editors (unless someone else wants to add a feature to vim).

However, I was thinking that one thing we could do is limit scrolling in visual mode to stop when the cursor is about to be moved. It wouldn't be smooth at all, but it would allow users to flick down/up to easily see the next screen of a file without breaking their visual selection. Do we think that's something worth having?

@ghost
Copy link
Author

ghost commented Oct 13, 2017

@amarqueslee Interesting discussions. I was not thinking about the cursor off screen, more like vanilla visual mode with Ctrl-D smoother. Something like this can be made.

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

No branches or pull requests

2 participants