LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-28-2010, 05:32 AM   #16
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48

I read
Code:
:h file-formats
Got some idea. In my words
Quote:
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.
 
  


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
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


All times are GMT -5. The time now is 04:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration