This is my first post and my first time creating vim syntax files, so please feel free to correct my approach to either.
My employer makes proprietary backup software which runs on Linux, Unix, and
Windows. I've created syntax files which make reading our config and log files
easier. Is it allowed/appropriate to include these in Vim? If not, I can
distribute the files directly to our customers, but my preference is to have
them included in Vim.
The syntax files are attached. I have questions about filetype.vim and
synmenu.vim, so I'll post them inline.
filetype.vim:
I've included some wildcarded filenames because customers will often rename a
log file to include the computer name or other identifier. I put them in
separate au statements to make their removal easier if they are found to cause
conflicts in the future (particularly with our use of the word "upstream" in
our product line). Is this approach acceptable?
I see that there are several augroups in filetype.vim. I don't understand the
purpose of the groups, so I'm not sure if I put my changes in the proper group.
*** /usr/share/vim/vim73/filetype.vim 2013-05-24 16:52:55.000000000 -0400
--- ./filetype.vim 2013-05-31 12:16:44.660112036 -0400
***************
*** 908,913 ****
--- 908,931 ----
" Initng
au BufNewFile,BufRead */etc/initng/**/*.i,*.ii setf initng
+ " Innovation Data Processing
+ au BufRead,BufNewFile UPSTREAM.DAT,upstream.dat setf upstream_dat
+ au BufRead,BufNewFile UPSTREAM.*.DAT,upstream.*.dat setf upstream_dat
+ au BufRead,BufNewFile *.UPSTREAM.DAT,*.upstream.dat setf upstream_dat
+ au BufRead,BufNewFile UPSTREAM.LOG,upstream.log setf upstream_log
+ au BufRead,BufNewFile UPSTREAM.*.LOG,upstream.*.log setf upstream_log
+ au BufRead,BufNewFile *.UPSTREAM.LOG,*.upstream.log setf upstream_log
+ au BufRead,BufNewFile UPSTREAMInstall.log,upstreaminstall.log setf
upstream_install_log
+ au BufRead,BufNewFile UPSTREAMInstall.*.log,upstreaminstall.*.log setf
upstream_install_log
+ au BufRead,BufNewFile *.UPSTREAMInstall.log,*.upstreaminstall.log setf
upstream_install_log
+ au BufRead,BufNewFile USSERVER.LOG,usserver.log setf usserver_log
+ au BufRead,BufNewFile USSERVER.*.LOG,usserver.*.log setf usserver_log
+ au BufRead,BufNewFile *.USSERVER.LOG,*.usserver.log setf usserver_log
+ au BufRead,BufNewFile USW2KAgt.log,usw2kagt.log setf usw2kagt_log
+ au BufRead,BufNewFile USW2KAgt.*.log,usw2kagt.*.log setf usw2kagt_log
+ au BufRead,BufNewFile *.USW2KAgt.log,*.usw2kagt.log setf usw2kagt_log
+
+
" Ipfilter
au BufNewFile,BufRead ipf.conf,ipf6.conf,ipf.rules setf ipfilter
synmenu.vim:
I've added five lines to this file. I did not renumber the lines to keep the
"number by 10" convention. Is that something I should do or do the developers
handle that before a release?
*** /usr/share/vim/vim73/synmenu.vim 2013-02-09 21:28:50.000000000 -0500
--- ./synmenu.vim 2013-05-31 12:22:24.404102339 -0400
***************
*** 242,247 ****
--- 242,252 ----
an 50.50.370 &Syntax.HIJK.Initng :cal SetSyn("initng")<CR>
an 50.50.380 &Syntax.HIJK.Inittab :cal SetSyn("inittab")<CR>
an 50.50.390 &Syntax.HIJK.Inno\ setup :cal SetSyn("iss")<CR>
+ an 50.50.392 &Syntax.HIJK.Innovation\ Data\ Processing.Upstream\ dat :cal
SetSyn ("upstream_dat")<CR>
+ an 50.50.393 &Syntax.HIJK.Innovation\ Data\ Processing.Upstream\ log :cal
SetSyn ("upstream_log")<CR>
+ an 50.50.394 &Syntax.HIJK.Innovation\ Data\ Processing.Upstream\ Install\ log
:cal SetSyn ("upstream_install_log")<CR>
+ an 50.50.395 &Syntax.HIJK.Innovation\ Data\ Processing.Usserver\ log :cal
SetSyn ("usserver_log")<CR>
+ an 50.50.396 &Syntax.HIJK.Innovation\ Data\ Processing.USW2KAgt\ log :cal
SetSyn ("usw2kagt_log")<CR>
an 50.50.400 &Syntax.HIJK.InstallShield\ script :cal SetSyn("ishd")<CR>
an 50.50.410 &Syntax.HIJK.Interactive\ Data\ Lang :cal SetSyn("idlang")<CR>
an 50.50.420 &Syntax.HIJK.IPfilter :cal SetSyn("ipfilter")<CR>
Thanks for your input, and thanks for the awesome piece of software.
-Rob
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
upstream_dat.vim
Description: Binary data
upstream_install_log.vim
Description: Binary data
upstream_log.vim
Description: Binary data
usserver_log.vim
Description: Binary data
usw2kagt_log.vim
Description: Binary data
