*** runtime/filetype.vim
--- /etc/vim/filetype.vim 2012-09-19 02:09:30.003919170 +0200
***************
*** 112,117 ****
--- 112,126 ----
" Apache config file
au BufNewFile,BufRead .htaccess,*/etc/httpd/*.conf setf apache
+ " APT config file
+ au BufNewFile,BufRead apt.conf setf aptconf
+ au BufNewFile,BufRead */.aptitude/config setf aptconf
+ au BufNewFile,BufRead */apt.conf.d/{[-_[:alnum:]]\+,[-_.[:alnum:]]\+.conf} setf aptconf
+
+ " APT preferences
+ au BufNewFile,BufRead */apt/preferences setf aptpref
+ au BufNewFile,BufRead */apt/preferences.d/{[-_[:alnum:]]\+,[-_.[:alnum:]]\+.pref} setf aptpref
+
" XA65 MOS6510 cross assembler
au BufNewFile,BufRead *.a65 setf a65
***************
*** 341,346 ****
--- 350,360 ----
" Conary Recipe
au BufNewFile,BufRead *.recipe setf conaryrecipe
+ " Conky
+ au BufNewFile,BufRead conky.conf setf conky
+ au BufNewFile,BufRead *.conkyrc setf conky
+ au BufNewFile,BufRead conky_*,conkyrc_* setf conky
+
" Controllable Regex Mutilator
au BufNewFile,BufRead *.crm setf crm
***************
*** 553,560 ****
\| endif
" Debian Sources.list
! au BufNewFile,BufRead */etc/apt/sources.list setf debsources
! au BufNewFile,BufRead */etc/apt/sources.list.d/*.list setf debsources
" Deny hosts
au BufNewFile,BufRead denyhosts.conf setf denyhosts
--- 567,574 ----
\| endif
" Debian Sources.list
! au BufNewFile,BufRead */apt/sources.list setf debsources
! au BufNewFile,BufRead */apt/sources.list.d/[-_.[:alnum:]]\+.list setf debsources
" Deny hosts
au BufNewFile,BufRead denyhosts.conf setf denyhosts
Hi,
this mail is mainly addressed to Debian/Ubuntu users and sysadmins, vim maintainers
and/or conky users and/or maintainers.
I have build three syntax files (see attachments):
- aptconf.vim for APT config files (see apt.conf(5))
- aptpref.vim for APT preferences (see apt_preferences(5))
- conky.vim for conkyrc files (version <2.0; see conky(1))
Of course, I have modified my filetype.vim to automatically load them
(see the patch in attachments).
1. aptconf.vim
Say me if I'm wrong, but I think there is no syntax file yet for apt.conf
This file seems big; this is due to the two syntax styles allowed in apt.conf
files. Some apt.conf syntax errors are not fully implemented. This means
this file can be enhanced.
2. aptpref.vim
Say me if I'm wrong, but I think there is no syntax file yet for APT
preferences files. For the moment it has some support for Debian
(keywords for the 'Pin: release ...' field: Debian lenny squeeze wheezy
sid oldstable stable testing etc.), not for Ubuntu.
3. conky.vim
Works only for conky 1.x conkyrc. (next generation is lua script)
I hope they will be included into Vim. Feedback is welcome.
Thanks,
quidame
--
You received this message from the "vim_use" 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
Tuesday, September 18, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment