nginx.vim

Wilson Bilkovich wilsonb at gmail.com
Thu May 3 19:03:13 MSD 2007


On 5/3/07, Evan Miller <emmiller+gmane at gmail.com> wrote:
>
> To install, download the above file into your ~/.vim/syntax/ folder (create that
> folder if it doesn't exist already). Then ensure that ~/.vim/filetype.vim has
> this line:
>
> au BufRead,BufNewFile nginx.conf* setf nginx
>
>

I have a bunch of conf files that get included into the main config,
in folders under my nginx conf directory.
I ended up setting up this rule as well:
au BufRead,BufNewFile */nginx/**/*.conf set ft=nginx
Which seems to work.
Someone with more vim config chops than me is welcome to correct it.





More information about the nginx mailing list