New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #29818 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Add vim info to apache2 port

Reported by: singingwolfboy@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: apache2

Description

Since we install files to /opt/local, Vim isn't aware that some of our apache config files are, in fact, apache config files. I've included a patch to make the apache2 port install a file to tell Vim where its configs are.

Attachments

apache2-vim.patch (653 bytes) - added by singingwolfboy@… 2 years ago.

Change History

Changed 2 years ago by singingwolfboy@…

comment:1 Changed 2 years ago by singingwolfboy@…

I just realized we'll probably have to create that directory tree before writing a file to that location -- this patch is untested. :)

comment:2 Changed 2 years ago by ryandesign@…

I'm not overly familiar with vim, but I guess I'm surprised that any text editor would be expected to know, out of the box, the locations of your config files.

comment:3 Changed 2 years ago by singingwolfboy@…

It's for syntax highlighting purposes. Vim knows that files that end in .conf are configuration files, and can highlight accordingly. But .conf files that live in /etc/apache/conf and /etc/apache/conf.d and considered special apache configuration files, and get more specific and useful syntax highlighting. This simply says that the .conf files we install for the apache2 port should be considered to be these special apache configuration files, and get the more useful highlighting.

It's a very minor enhancement, but I would find it useful. :)

Note: See TracTickets for help on using tickets.