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
Allow highlighting the entire line while in Visual Line Mode #14432
Comments
This should absolutely not be default behavior, and I'm not even seeing why it should be added at all (especially if there's a plugin). Visual mode should show what's been selected, and not (except for special cases like virtualedit) falsely claim to have selected stuff that doesn't exist in the buffer. The picture of the allegedly desired behavior is "claiming", pictorially, that there's quite a bit of trailing whitespace hanging on every line in the range. |
Interesting. I was able to reproduce this with The selection range by itself doesn't communicate "this is a visual line selection and that last character is actually a newline" unless your user also (Neo)Vim could communicate the difference better, visually, which prompted this GitHub issue.
For an answer, please see the original post. Specifically, "but sometimes has flickering + latency issues in Neovim while working in larger files due to how it needs to run last in Neovim's event loop to ensure accurate results." By "larger file" I meant I've seen this even in 1000-line files. The plugin is a great attempt but not bullet proof. It's possible the plugin could be improved to scale better for larger files better but a solution in C is the best course to keep everything in-sync. |
I feel you but as mentioned, that's only the case when The crux of the matter IMO is that, in
I use both Windows and CentOS and they both appear to operate the same in both cases so I think this isn't as much of a concern thankfully but I could be wrong. Btw @laburnumT thank you for chatting this out instead of outright dismissing the suggestion. I know this is a small quality of life thing but I think it's worth at least chatting about! |
Hmm the listchars thing could indeed make it visually confusing, though Conceptually I do like the idea of having a different visual indication Perhaps something with autocmds could set a visible eol char when
|
The The suggested autocmd would only work in base Vim, Neovim doesn't set I've said all of my main points. I still think this suggestion is pretty inline with the spirit of |
Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
This is a split issue from #14170. in
VISUAL LINE
mode, Vim highlights every non-whitespace character. This helps differentiateVISUAL LINE
/V-LINE
from the other visual modes but since this mode also captures the ending newlines, I think it'd help if this mode communicated "I capture the full line, not just the leading whitespace and non-whitespace characters" more clearly compared to the other visual modes which do not capture the full line.Describe the solution you'd like
Basically implement a new option to enable full-line highlighting, like how this plugin does it - https://github.com/0xAdk/full_visual_line.nvim
Or maybe people would be comfortable for this becoming the new default behavior. At the moment I'd be more than happy if this screen behavior was a simple opt-in global setting.
Describe alternatives you've considered
Continuing to use https://github.com/0xAdk/full_visual_line.nvim. It's a good plugin but sometimes has flickering + latency issues in Neovim while working in larger files due to how it needs to run last in Neovim's event loop to ensure accurate results. If this feature lived in the (Neo)vim core then it would work as expected.
The text was updated successfully, but these errors were encountered: