Author Topic: About vim and ^M control codes  (Read 1932 times)

Offline Ursus

  • Always here
  • *****
  • Posts: 334
    • View Profile
About vim and ^M control codes
« on: January 03, 2002, 02:15:00 pm »
Almost by accident I happened to discover that vim does indeed display the ^M control code if it is there. I noticed it while looking over a perl cgi script which writes html files. After further investigation, trial and error, it turns out that what ircd.conf doesn't like is dos files and only the one line is effected by them, the U: line. Nothing else seems to have a problem with dos files, which is actually what is causing the problem here. So, just looking for, and deleting, ^M control codes isn't necessarily going to take care of the problem. Only way to deal with it, is to be darn sure you don't edit ircd.conf with a win box cause the file 'will' be saved as dos format. If you do, you'll need to completely rewrite ircd.conf with a unix editor.

Boredom is a scary thing.
No matter where ya go...there ya are!

Offline ShadowMaster

  • Chief Codemonkey
  • Administrator
  • ********
  • Posts: 3136
    • View Profile
    • http://www.shadow-realm.org/
About vim and ^M control codes
« Reply #1 on: January 03, 2002, 08:07:00 pm »
lol, yes it is :smile:

And H lines are also known to have problems with it.. however.. oddly.. not always.. dont ask, i dont know.. i dont wanna know.. and i never would have known.. had i not known it.


Search before posting - No support by PM or IM

 

anything