Sublime Forum

Windows CR symbol ^M breaks lines in *nix OS

#1

So I have a file that I saved in vim the other day that worked just fine. I used the ctrl+v ctrl+m shortcut to insert the ^M for the windows carriage return that I needed for a sed command embedded in a ruby script. When I open the file up in sublime the command breaks the line at the position where the ^M is. I wouldn’t expect this is intended behavior. Please advise how I can stop this from happening and just have the file display the ^M as expected. I have attached a sample file similar to the one I’m working with. Thanks.

0 Likes