Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-04-2009, 01:09 PM   #1
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?

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

Rep: Reputation: 33
:set fileformats=dos
If my memory isn't lying to me.
Old 05-04-2009, 02:04 PM   #3
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:

:set list
disable with
:set nolist

:help list
*: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....


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 > Forums > Linux Forums > Linux - Software

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

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