Steve Hall wrote:
On Fri, 2006-07-21 at 11:19 +0800, Stewart Johnson wrote:
Is there a vim option to represent space characters in a file as a
dot or something else not blank?

Vim can only represent trailing spaces, not any intermediate ones.
(Per the previously mentioned listchars option.)



True. It can represent hard tabs anywhere, and spaces at end-of-line. It can also add a special character after the end of the line to mark its length. Depending on what you 'really' want to do, this may or may not be OK for you.

Or you might want to use

        :1,$s/ /./

to replace all spaces by dots, then (immediately after)

        u

for "undo".


Best regards,
Tony.

Reply via email to