EricL
EricL

Reputation: 3

Underscores Instead of Whitespace in Vim

I'm not sure what I did, but somehow I have underscores where whitespace should be when I edit a file in vim. Can someone tell me how to get my whitespace back?

This is my version info.

VIM - Vi IMproved 7.0 (2006 May 7, compiled Jan 8 2013 23:52:09)

Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31, 34-44, 47, 50-56, 58-64, 66-73, 75, 77-92, 94-107, 109, 202, 234-237

Thanks!

Upvotes: 0

Views: 1299

Answers (2)

scave
scave

Reputation: 21

I had similar symptoms. The underscores were actually showing the result of inadvertently searching for spaces by typing / . Got them to disappear by typing /AnyOtherString

Upvotes: 2

mMontu
mMontu

Reputation: 9273

You could try the substitute command:

:%s/_/ /g

Additional information in :help :s.

Upvotes: 0

Related Questions