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

Show invisibles (whitespaces, tabs, newlines...) #431

Open
khoden opened this issue Oct 26, 2016 · 9 comments
Open

Show invisibles (whitespaces, tabs, newlines...) #431

khoden opened this issue Oct 26, 2016 · 9 comments

Comments

@khoden
Copy link

khoden commented Oct 26, 2016

Would you add feature/option to show whitespaces?

Spaces as small dots, tabs as arrows

@mikamiel
Copy link

And LF, CR, CR+LF as paragraph mark

@zyedidia
Copy link
Owner

This would would be an extension of the indentchar setting. I think it's probably best to implement the way Vim does with listchars with a list of all the different special characters.

@zyedidia zyedidia changed the title Show whitespaces Show invisibles (whitespaces, tabs, newlines...) Sep 24, 2017
@moqmar
Copy link

moqmar commented Apr 19, 2018

And please display undisplayable Unicode characters in a hexadecimal format - it happens so often that micro puts some escape sequences into files for whatever reason (probably related to #779), but without that feature it's impossible to debug that without starting vim or basically any other editor.

@Julien00859
Copy link

Up, is there a way in 2022 to show the hidden characters ? Like vim's listchars ?

@serge-v
Copy link
Contributor

serge-v commented Jan 30, 2022

to show tabs use "indentchar": "."

@kcghost
Copy link

kcghost commented May 2, 2022

This thread is at the top of search results, so I just wanted to point out that you can use any kind of unicode character for indentchar so that it looks a little more like the functionality seen in other text editors like Sublime text.

Rather than just a dot, you can choose from a wide variety of styled arrows for example. The most appropriate behavior would be if these stretched out or duplicated over the number of columns set by your tab stop. Sadly that isn't the case, and the indentchar is typically only one column wide.
But as an additional workaround, there are some unicode symbols that are interpreted by some terminals as two columns wide rather than just one thanks the the East Asian width property.

The rightward tab character renders well for me as two columns and is likely the most appropriate choice. Set it with:
set indentchar ⇥

You might also prefer in the "Long arrows" category, though oddly enough most of the "long arrows" don't render as two columns (at least for me).

@czrpb
Copy link

czrpb commented May 17, 2022

yes, this does still come up when searching .. and reading thru it seems you can NOT have different non-white for different white characters, yes?

@Justinzobel
Copy link

I'd just love to see whitespaces on end of line so I can remove them.

@dmaluka
Copy link
Collaborator

dmaluka commented Jan 30, 2023

Not exactly this but similar (and arguably better) functionality is provided by my PR #1897.

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

10 participants