Skip site navigation (1)Skip section navigation (2)
Date:      20 Mar 2004 13:09:36 -0000
From:      tmseck-lists@netcologne.de (Thomas-Martin Seck)
To:        Alex Kiesel <alex.kiesel@document-root.de>
Cc:        freebsd-ports@freebsd.org
Subject:   mutt/vim highlighting (was: vim ignoring configure options)
Message-ID:  <20040320130936.1212.qmail@laurel.tmseck.homedns.org>
In-Reply-To: <1079779615.579.11.camel@boost.home.ahk>

next in thread | previous in thread | raw e-mail | index | archive | help
* Alex Kiesel <alex.kiesel@document-root.de> [gmane.os.freebsd.devel.ports]:

> Well, sort of. About three weeks ago, Syntax highlighting in vim (only
> when invoked by mutt) stopped working. However, I've been to lazy to
> investigate why.

The mutt folks changed the filename template in 1.4.2.1 so vim does not
recognize the 'letter' as a file of type 'mail' anymore.  Vim needs to
check for mutt-*-\w instead of mutt-*-\d.

This patch fixes this systemwide:

--- filetype.vim.orig	Sat Mar 20 13:59:47 2004
+++ filetype.vim	Sat Mar 20 14:03:15 2004
@@ -705,7 +705,7 @@
 au BufNewFile,BufRead *.mgp			setf mgp
 
 " Mail (for Elm, trn, mutt, rn, slrn)
-au BufNewFile,BufRead snd.\d\+,.letter,.letter.\d\+,.followup,.article,.article.\d\+,pico.\d\+,mutt-*-\d\+,mutt\w\{6\},ae\d\+.txt,/tmp/SLRN[0-9A-Z.]\+,*.eml setf mail
+au BufNewFile,BufRead snd.\d\+,.letter,.letter.\d\+,.followup,.article,.article.\d\+,pico.\d\+,mutt-*-\w\+,mutt\w\{6\},ae\d\+.txt,/tmp/SLRN[0-9A-Z.]\+,*.eml setf mail
 
 " Mailcap configuration file
 au BufNewFile,BufRead .mailcap,mailcap		setf mailcap



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040320130936.1212.qmail>