• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Vim Syntax Highlighter

Carlosinfl

Loves the juice
Joined
Sep 25, 2002
Messages
6,633
Is there a method or way to "update" Vim's syntax highlighter manually? I appear to have a very updated version of Vim on both Debian & Arch Linux but I notice that on both servers on the identical configuration file for Postfix MTA (main.cf) I have a parameter that shows up in 'white' which usually means 1 or 2 things:

1. I have a typo somewhere in my parameter.
2. The parameter is not recognized by Postfix and useless

However in this case it is neither of the two above however it stands out in the configuration file because it's not in color. It's the only one that is white text. I verified the command / parameter is valid:

Link

The parameter is:

Code:
[B]smtpd_tls_security_level[/B] = may

Is there a way to update Vim to highlight the " smtpd_tls_security_level" parameter in the configuration file when opened with Vim? Do I need to update the syntax highlighter for this to have the desired effect?

**I know this issue is purley cosmetic but as an administrator I find it annoyong to have to waste time and research if a configuration parameter is valid or not. I rely on Vim's color syntax highlighting to tell me when I make a overlooked mistake. I do know that Postfix is happy with the current configuration as I can see it being executed in the program**:

Code:
postconf -n | grep "smtpd_tls_security_level"
smtpd_tls_security_level = may
 
That parameter appears in the smtpd(8) manpage, but not in the main.cf manpage. You should be fine. Read more in the smtpd manpage if you're unsure.

As far as vim syntax highlighting goes, my stock syntax .vim files are stored in /usr/share/vim/vim72/syntax on my gentoo machine. Look around for your .vim syntax files and you may find your answer.
 
Yes sir. Thanks for the info! I verified that main.cf is recognizing the parameter and I added into:

/usr/share/vim/vim72/syntax/pfmain.cf

Thank you!
 
You can place custom syntax/color/script/etc files in your ~/.vim directory.
 
Back
Top