LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-02-2009, 12:46 PM   #1
ravi.xolve
Member
 
Registered: Jul 2006
Posts: 89

Rep: Reputation: 15
Arrow vim : Intellingt textwidth


I use textwidth option to avoid the email and text I write to others, to stop it exploding horizontally.

However it doesn't accomodate my needs very well. Here are the few instances:

1) I wrote a text and newlines were beautifully inserted at the specified locations. However later I found that when I delete or add some words in lines written earlier now the new lines won't be inserted that way. In fact now i need to this manually to bring all lines to the sync of textwidth.

2) I want to unset this option, i.e., suppose I am sending the text as email (copy/paste). The mail viewer programs do the word wrap too. So I want to remove those automatically inserted newlines (except for paragraphs for which I inserted them on my own).
 
Old 04-02-2009, 01:20 PM   #2
ravi.xolve
Member
 
Registered: Jul 2006
Posts: 89

Original Poster
Rep: Reputation: 15
The answer is
Code:
set textwidth=80 formatoptions=aqntc
 
  


Reply



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
VIM Users: Do you use VIM via console or gui? JMJ_coder Linux - General 48 04-16-2008 03:12 AM
encryption with Vim (vim -x) mikshaw Linux - Software 2 03-07-2007 09:00 AM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 01:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM
Vim, textwidth, pine and tin mr666white Linux - Software 1 10-03-2004 12:07 PM

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

All times are GMT -5. The time now is 07:56 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