Add lcs-multispace to show multiple consecutive spaces differently#8834
Add lcs-multispace to show multiple consecutive spaces differently#8834zeertzjq wants to merge 1 commit intovim:masterfrom zeertzjq:lcs-contig
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8834 +/- ##
==========================================
- Coverage 90.18% 90.15% -0.04%
==========================================
Files 151 147 -4
Lines 170880 170175 -705
==========================================
- Hits 154102 153413 -689
+ Misses 16778 16762 -16
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Isn't that something, that you can already do using something like this: |
|
This requires setting |
|
Well yes, and in your case it needs an additional |
|
Everything in |
Maybe "convenient" is not the right word here. I wanted to mean that it may conflict with other use cases of conceal, especially those that don't work well with |
|
Instead of a single character, how about making this a string? E.g. setting it to "---+" would show a longer sequence of spaces as "---+---+---+". Would not be used for a single space. |
Should the string be |
|
I'm using |
|
I think this is done now. |
|
Several |
|
This is starting to look good. A couple of notes. The name "contig" is not at all obvious. How about "multspace"? or "space2"? The help should give an example, e.g. "---.---+". |
|
It seems "multiple" is more often abbreviated to "multi" than as "mult" in Vim. "multispace" indeed seems a more straightforward name. |
Problem: A sequence of spaces is hard to see in list mode. Solution: Add the "multispace" option to 'listchars'. (closes vim/vim#8834) vim/vim@f14b8ba
This is useful if one doesn't want to show single spaces (around operators or between words) so that it doesn't hinder code (or text) reading, while still wants to be able to show multiple consecutive spaces to make it easier count the number of spaces in a string or something else. I can recall that some other code editors (maybe VSCode) have this feature.