LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-09-2008, 06:48 PM   #1
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
nvi showing strange character


Hello,

I am using nvi 1.79 - it is giving me a ^M character at the end of the lines in some (not all) files. Both vim and elvis display them correctly. Is this something to do with dos vs. unix line endings or is it another issue? Can nvi properly handle dos line endings?

Also, does anyone know if nvi can handle syntax highlighting - even primitive highlighting (i.e., bold keywords)?
 
Old 09-09-2008, 07:09 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Quote:
Originally Posted by JMJ_coder View Post
Hello,

I am using nvi 1.79 - it is giving me a ^M character at the end of the lines in some (not all) files. Both vim and elvis display them correctly. Is this something to do with dos vs. unix line endings or is it another issue? Can nvi properly handle dos line endings?

Also, does anyone know if nvi can handle syntax highlighting - even primitive highlighting (i.e., bold keywords)?
Yes, ^M is the extra character which is due to DOS line endings. You can run the file through the program dos2unix to fix it.
 
Old 09-11-2008, 06:43 PM   #3
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
That's what I thought.
 
Old 09-11-2008, 06:44 PM   #4
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Any idea if nvi supports syntax highlighting or tabs?


It can split windows, but do you know how to split vertically or move between the windows?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I find nvi package mathewzhao Slackware 2 07-06-2006 08:12 AM
strange character problem ! crispyleif Debian 2 04-16-2006 06:14 AM
Webpage showing special character, inverted exclaimation mark jc_neo Linux - Newbie 0 10-15-2004 01:27 AM
Strange character on man pages alaerte Linux - Newbie 4 07-29-2003 02:17 PM
strange character ^M chandan Linux - Newbie 2 07-09-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration