Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-28-2010, 05:32 AM   #16
sumeet inani
Registered: Oct 2008
Posts: 905

Original Poster
Blog Entries: 26

Rep: Reputation: 49

I read
:h file-formats
Got some idea. In my words
DOS -lines end with \r\n
UNIX -lines end with \n
MAC -lines end with \r
If you open a file & all lines don't end in \r\n then fileformat remains unix not DOS.Similiarly all \r means MAC.
You can type \r by 'ctrl+v' then 'enter'
If you edited unix text file in windows notepad then you will see ^M (i.e \r) in that file.

(1)press ctrl+g (to see how many lines your document have & %th position of current line)
(2)press 'g' then 'ctrl+g' .Now you see current line number,column,word & byte position.(I agree :set ruler will show line number & column at bottom right . So the extra info was words & bytes).
Okay , I went out of context.

Last edited by sumeet inani; 07-28-2010 at 06:26 AM.


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
LXer: Personalize and Optimize Vim editor using Packtís new Vim 7.2 book LXer Syndicated Linux News 0 05-20-2010 11:20 PM
searching multiple patterns through Vi editor barunparichha Linux - Software 10 05-12-2009 09:39 PM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM
vim editor kosys Linux - General 6 12-31-2007 11:48 AM
vim editor shabbirhai Linux - General 5 03-02-2006 03:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration