From owner-freebsd-ports@FreeBSD.ORG Sat Mar 20 05:10:06 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E639916A4CE for ; Sat, 20 Mar 2004 05:10:06 -0800 (PST) Received: from smtp2.netcologne.de (smtp2.netcologne.de [194.8.194.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92C6D43D1F for ; Sat, 20 Mar 2004 05:10:06 -0800 (PST) (envelope-from thomas@laurel.tmseck.homedns.org) Received: from laurel.tmseck.homedns.org (xdsl-213-168-118-100.netcologne.de [213.168.118.100]) by smtp2.netcologne.de (Postfix) with SMTP id A1DA43A117 for ; Sat, 20 Mar 2004 14:10:04 +0100 (MET) Received: (qmail 1213 invoked by uid 1001); 20 Mar 2004 13:09:36 -0000 Date: 20 Mar 2004 13:09:36 -0000 Message-ID: <20040320130936.1212.qmail@laurel.tmseck.homedns.org> From: tmseck-lists@netcologne.de (Thomas-Martin Seck) To: Alex Kiesel Organization: private site In-Reply-To: <1079779615.579.11.camel@boost.home.ahk> X-Newsgroups: gmane.os.freebsd.devel.ports X-Attribution: tms cc: freebsd-ports@freebsd.org Subject: mutt/vim highlighting (was: vim ignoring configure options) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 13:10:07 -0000 * Alex Kiesel [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