LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2009, 01:09 PM   #1
sleeper0110
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
Want vim to NOT be windows friendly


I have software written by windows and linux developers. I would like the linux devlopers (who use vim) to be able to see the ^M newline characters of files that our Windows developers created (CRLF). These days, vim is smart enough to realize the CRLF and not show the ^M characters. I want those ^M characters to show up.

I'm not interested in converting these, or getting them to play nice with each other. I just want vim on linux to get these windows newlines to show up as ^M so we know they are there.

Regular vi has them show up just fine. There must be some sort of vim windows_newline option or something.

Can anybody help me?

Thanks!
 
Old 05-04-2009, 01:34 PM   #2
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Code:
:set fileformats=dos
If my memory isn't lying to me.
 
Old 05-04-2009, 02:04 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
To make Vim show the hidden characters in the document you're editing, enter the command:

Code:
:set list
disable with
Code:
:set nolist

:help list
Quote:
*:l* *:list*

:[range]l[ist] [count] [flags]
Same as :print, but display unprintable characters with '^' and put $ after the line.
See |ex-flags| for [flags].

:set invlist seems to do the same thing, but there's no help on that command....
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows is User Friendly custangro Linux - General 5 04-19-2009 05:11 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
LXer: Xandros 4 is Windows friendly LXer Syndicated Linux News 0 06-26-2006 02:21 PM
LXer: Windows-friendly desktop Linux launches LXer Syndicated Linux News 0 06-24-2006 09:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 AM.

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
Open Source Consulting | Domain Registration