LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2008, 09:34 AM   #1
fs11
Member
 
Registered: Aug 2006
Posts: 79

Rep: Reputation: 15
line width 80 vim


Hello all,

I am facing a small problem and need some help it.

I have a large amount of text data in a file, and the lines are huge(of the order of 1000). I want the text to be displayed as a standard vim width of 80. I have set up my vim as default width of 80 but since , the original file source is from other machine and the text is saved in this way, apparently I cannot view it as a 80 character width in vim.

Any help would be appreciable.

Thanks alot...
 
Old 06-24-2008, 11:32 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Which options did you use/set to accomplish this?

set tw=80
set wrap


Should do what you want (at least for linux, dos/windows and os x files).

Hope this helps.
 
  


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
how to make a tab is 4 spaces width in vim? ICO SUSE / openSUSE 8 03-05-2013 10:24 AM
emacs width line jrdioko Linux - Software 14 07-10-2009 11:48 AM
line problem in vim lawrence_lee_lee Linux - Software 1 01-22-2008 04:06 AM
VIM: ^M at end of line baikonur Programming 3 09-12-2006 04:16 AM
Make the start-line in Fluxbox 100% width objorkum Linux - Software 6 03-18-2004 09:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:13 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
Open Source Consulting | Domain Registration