Share your knowledge at the LQ Wiki.
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 04-02-2009, 01:46 PM   #1
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, 02:20 PM   #2
Registered: Jul 2006
Posts: 89

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


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

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