[Home]

Summary:ASTERISK-08664: make vim syntax highlight config files in the /etc/asterisk directory
Reporter:David Wise (davewise)Labels:
Date Opened:2007-01-25 12:59:35.000-0600Date Closed:2011-06-07 14:12:00
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Asterisk config files are based on the windows ini format.  To seperate comments from configuration is as simple as setting the file type to dosini.

the easiest way to do this is go into config file filetypes.vim of vim located at  /usr/share/vim/vim63

and installing the following lines:

" Asterisk Config
au BufNewFile,BufRead /etc/asterisk/*           setf dosini

at line 1641 for the augroup section.  this automatically makes everything in the asterisk directory default to dosini unless it recoginizes the file format of some thing else.
Comments:By: Tilghman Lesher (tilghman) 2007-01-25 13:58:40.000-0600

Or you could use the Asterisk vim files that are already included in the latest version of vim.

By: James Lyons (james) 2007-01-31 17:22:50.000-0600

what version of vim?

By: Tilghman Lesher (tilghman) 2007-01-31 17:49:32.000-0600

Version 7.

By: James Lyons (james) 2007-01-31 17:58:09.000-0600

As soon as vim 7 becomes available upstream on rpl:1, then it'll be available. As this is a trivial, cosmetic issue, there's no use in shadowing the trove in early.

By: James Lyons (james) 2007-02-02 13:41:13.000-0600

Waiting for upstream update for vim 7