User login

Strange no line breaks issue in Mac OS X terminal vi text editor

drupal my cvs module has no line breaks
screwy line breaks in vi
^M instead of line breaks
the whole module code is on one line in the command line vim text editor.

This was noticed after attempting, and failing, to apply a one-letter change patch. (Well I guess patches always change at least one line, so after applying a one-line patch that failed.) But I don't think this was the source of my problems, as copying and pasting through anything but SubEthaEdit seemed the leave the same problem, even copy-paste through TextWrangler left the file a mess.

As noted in my commit message:

Fix for showing up in the right place in the administration menu http://drupal.org/node/157982 submitted by melon http://drupal.org/user/32875 - I actually replaced the entire file from a copy-paste from the repository browser before making the one-letter change - thanks again melon for spotting the typo - because that's the only way I could get line breaks to show up again in the command line vi text editor. Very strange, just noting here in case it leads to unexpected issues.

Vi is acting weird, period, for this file. All the $ (dollar signs) and one letter after them are highlighted in red.

drupal my cvs module has no line breaks
screwy line breaks in vi
^M instead of line breaks
the whole module code is on one line in the command line vim text editor.

This was noticed after attempting, and failing, to apply a one-letter change patch. (Well I guess patches always change at least one line, so after applying a one-line patch that failed.) But I don't think this was the source of my problems, as copying and pasting through anything but SubEthaEdit seemed the leave the same problem, even copy-paste through TextWrangler left the file a mess.

As noted in my commit message:

Fix for showing up in the right place in the administration menu http://drupal.org/node/157982 submitted by melon http://drupal.org/user/32875 - I actually replaced the entire file from a copy-paste from the repository browser before making the one-letter change - thanks again melon for spotting the typo - because that's the only way I could get line breaks to show up again in the command line vi text editor. Very strange, just noting here in case it leads to unexpected issues.

Vi is acting weird, period, for this file. All the $ (dollar signs) and one letter after them are highlighted in red.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.