vi/vim not showing ^M control character

Solution Verified - Updated -


  • I'm using vi/vim to open and edit a file and I'm not seeing the control character ^M from files that have been edited or created on Windows. Even with the 'set list' option enabled they're not visible.

Is this expected behaviour?


  • Red Hat Enterprise Linux (RHEL)
  • vim text editor

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content