Then ensure that ~/.vim/filetype.vim has<br>this line:<br><br><span style="color: rgb(255, 0, 0);">au BufRead,BufNewFile nginx.conf* set ft=nginx</span><br><br><br><div><span class="gmail_quote">2007/5/3, Evan Miller &lt;<a href="mailto:emmiller+gmane@gmail.com">
emmiller+gmane@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What do you get when you combine the world&#39;s greatest web server with the
<br>world&#39;s greatest text editor? Well, not *quite* the best syntax highlighting<br>file out there, but it&#39;s a start:<br><br><a href="http://www.riceonfire.org/emiller/nginx.vim">http://www.riceonfire.org/emiller/nginx.vim
</a><br><br>Nginx has a beautiful configuration syntax and deserves to be colored<br>appropriately. If you&#39;re a Vim user, this file will light up the valid<br>directives in your nginx.conf, and it will highlight variable names inside of
<br>strings and URLs for easier reading. It&#39;s all done quite tastefully, if I may<br>say so.<br><br>To install, download the above file into your ~/.vim/syntax/ folder (create that<br>folder if it doesn&#39;t exist already). Then ensure that ~/.vim/filetype.vim has
<br>this line:<br><br>au BufRead,BufNewFile nginx.conf* setf nginx<br><br><br>Please note that these highlighting rules are very BETA as I just learned how to<br>make this kind of thing three hours ago. Send comments, anomalies, and
<br>improvements my way.<br><br>My heart goes out to the list&#39;s Emacs users.<br><br>Evan<br><br></blockquote></div>