[SLUG] VIM

Adams, Jamie JAMIE.ADAMS at HOMEGROUP.ORG.UK
Wed Aug 28 14:04:01 BST 2002


Thats great thanks, I will have a play when I get home tonight. 

Its a bit sad when little things like this bug you. lol

> ----------
> From: 	Gavin Baker[SMTP:gavbaker at ntlworld.com]
> Reply To: 	scarborough at mailman.lug.org.uk
> Sent: 	28 August 2002 11:40
> To: 	scarborough at mailman.lug.org.uk
> Subject: 	Re: [SLUG] VIM
> 
> <<File: Mandrake-Cooker-vimrc.txt>><<File: Sid-vimrc.txt>>
> On Wed, 2002-08-28 at 10:11, Adams, Jamie wrote:
> > VIM in Mandrake was very nice to use, under Redhat it has a few little
> > differences that I find a little annoying. Namely:
> > 
> > When in Insert mode, my backspace key wont work, I have to move the
> cursor
> > to the front of the word I want to delete and use the DEL button. This
> only
> > happens in VIM, not any other apps.
> 
> try :se backspace=2, or set backspace=2 in your ~/.vimrc (:help bs)
> 
> > Secondly (this may seem pedantic):
> > 
> > When I send an email composed with VIM (I use mutt), the text simply
> flows
> > to the end of the screen and then wraps (like this message), this is
> okay,
> > but under Mandrake it wrapped at about 80 characters along like this:
> > 
> > "I have to got the seat reservations today from Wetherspoons. We are
> going
> > to 
> > be sat upstairs in the no smoking section, which is just near the
> toilets. I
> > 
> > chose this area because it is usually quieter and its sectioned off a
> bit 
> > from the main areas."
> > 
> > I like the way it layed it out under Mandrake better.
> 
> You can :set textwidth=<number>, and change some behaviour with :set
> formatoptions=<options> (":he fo-table" to see what the flags mean).
> 
> If you want to change something thats loaded from a syntax file (like
> mail), you can't just override them in your ~/.vimrc, because the syntax
> file is read after it.
> 
> So if you wanted to change the textwidth of files with filetype or
> syntax of mail, having
> 
> if &syntax=="mail"
>     set textwidth=80
> endif
> 
> in your ~/.vimrc would not work. 
> 
> :se rtp (runtimepath) shows the locations that files are read from, the
> last place looked is ~/.vim/after/
> 
> So we would just put
> 
> set textwidth=80
> 
> in a file called ~/.vim/after/syntax/mail.vim
> 
> > Does someone have a sample .vimrc file they could send me from a
> Mandrake
> > system, or any suggestions?
> 
> I've attached the mandrake one from the cooker, and a debian one.
> 
> Regards,
> Gav
> 
> 
> 
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
> 

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________




More information about the Scarborough mailing list