DEV Community

Cover image for Remove Vim Tab Characters
Waylon Walker
Waylon Walker

Posted on β€’ Originally published at waylonwalker.com

3 2

Remove Vim Tab Characters

I've been stuck many times looking at a vim buffer with little question marks at the beginning of each line and trying to get rid of them. for so long I didn't know what they were so trying to get rid of them was impossible.

example of what the tab character renders as in my editor

It turns out they are tabs, and you can get rid of the little leading question marks with this substitution command.

:%s/\t/    /g
Enter fullscreen mode Exit fullscreen mode

This is a til (today I learned) I'm posting them on my website and to twitter's #100daysoftils

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay