Unix Technical Forum

.vimrc and wrapmargin

This is a discussion on .vimrc and wrapmargin within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> This is strange but for some reason when I set my wrapmargin in my ..vimrc to 80 it ends ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 12:01 PM
Scott Eberl
 
Posts: n/a
Default .vimrc and wrapmargin

This is strange but for some reason when I set my wrapmargin in my
..vimrc to 80 it ends up wrapping at like 5 cols. This makes no sense to
me at all and was wondering if anybody had some ideas for this? I use a
seperate .vimrc file for mutt and vim is called from mutt with the -u
option to load the custom rc file but why would marginwrap=80 not wrap
at 80?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 12:01 PM
Juergen Frieling
 
Posts: n/a
Default Re: .vimrc and wrapmargin

Hallo Scott Eberl

> This is strange but for some reason when I set my wrapmargin in my
> .vimrc to 80 it ends up wrapping at like 5 cols. This makes no sense to


wrapmargin AFAIK counts from the right, that is you get column 80-80=0 :-)

Juergen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 12:02 PM
Kai Brust
 
Posts: n/a
Default Re: .vimrc and wrapmargin

Scott Eberl <scott@airea420.com> schrieb:
> This is strange but for some reason when I set my wrapmargin in my
> .vimrc to 80 it ends up wrapping at like 5 cols. This makes no sense to
> me at all and was wondering if anybody had some ideas for this? I use a
> seperate .vimrc file for mutt and vim is called from mutt with the -u
> option to load the custom rc file but why would marginwrap=80 not wrap
> at 80?


I'm not that expert in vimrc's, but this is my entry in ~/.muttrc:

set editor="vim -c 'set tw=72 et'"

No aditional vimrc needed, wraps the lines correct, so maybe you are
looking for a solution like this.

HTH,
Kai Brust
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 12:02 PM
Erich Hoffmann
 
Posts: n/a
Default Re: .vimrc and wrapmargin

Am Mon, 7 Jun 2004 16:34:23 +0000 (UTC)
schrieb Juergen Frieling <juergen@beer.com>:
>
>> This is strange but for some reason when I set my wrapmargin in my
>> .vimrc to 80 it ends up wrapping at like 5 cols. This makes no sense to

>
> wrapmargin AFAIK counts from the right, that is you get column 80-80=0 :-)


This is why I use [set textwidth=80] and not wrapmargin.
Start from inside Vim

:help textwidth

and/or

:help wrap
:help wrapmargin
:help formatoptions

hth,

erich

--
REPLY-TO: ...er1ch=erich...h0ff=hoff...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com