I just realized I neglected to actually include the patch, but it's here now.
Eric On Sun, Aug 21, 2011 at 10:50:16PM -0500, Eric Pruitt wrote: > While comparing my current msmtp configuration to an old esmtprc file, I > noticed that the msmtp color scheme was a bit drab. Attached are my changes > to > spruce things up a bit. > > Eric >
--- msmtp.vim.orig 2010-02-07 05:33:51.000000000 -0600 +++ msmtp.vim 2011-08-21 21:00:23.473316100 -0500 @@ -1,9 +1,10 @@ " Vim syntax file " Language: msmtp rc files " Maintainer: Simon Ruderich <[email protected]> -" Last Change: 2008-08-23 +" Eric Pruitt <eric.pruitt & gmail.com> +" Last Change: 2011-08-21 " Filenames: msmtprc -" Version: 0.1 +" Version: 0.2 if version < 600 @@ -25,7 +26,6 @@ " Sendmail mode specific commands. syntax match msmtpOption /\<\(auto_from\|from\|maildomain\|dsn_notify\|dsn_return\|keepbcc\|logfile\|syslog\)\>/ - " Options which accept only an on/off value. syn match msmtpWrongOption /\<\(tls\|tls_certcheck\|tls_starttls\|tls_force_sslv3\|auto_from\|keepbcc\) \(on$\|off$\)\@!.*$/ " Option port accepts numeric values. @@ -45,8 +45,23 @@ " Mark the option part as a normal option. highlight default link msmtpWrongOption msmtpOption +"Email addresses (yanked from esmptrc) +syntax match msmtpAddress /[a-z0-9_.-]*[a-z0-9]\+@[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+/ +" Host names +syn match msmtpHost "\%(host\s*\)\@<=\h\%(\w\|\.\)*" +" Numeric values +syn match msmtpNumber /\<\(\d\+$\)/ +"Strings +syntax region msmtpString start=/"/ end=/"/ +syntax region msmtpString start=/'/ end=/'/ + highlight default link msmtpComment Comment highlight default link msmtpOption Type highlight default link msmtpWrongOptionValue Error +highlight default link msmtpString String +highlight default link msmtpAddress Constant +highlight default link msmtpNumber Number +highlight default link msmtpHost Identifier + let b:current_syntax = "msmtp"
------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________ msmtp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msmtp-users
