This is filetype.vim patch and syntax for initng config files.

Initng is bold new replacement for sysv-init, http://initng.thinktux.net

Those config files sit under /etc/initng/** and have extension *.i
Distinguishing them from other *.i files is easy, they have
#!/bin/itype in the 1st line.

The syntax file was written by Elan Ruusamäe <[EMAIL PROTECTED]>
and comes from http://glen.alkohol.ee/pld/initng/vim/

Yakov
--- filetype.vim        2006-08-21 14:46:46.000000000 +0000
+++ filetype.vim.001    2006-08-21 14:19:49.000000000 +0000
@@ -1250,19 +1250,14 @@
  endif
endfun

-" Progress or assembly or initng
-au BufNewFile,BufRead *.i                      call s:FTprogress_asm_initng()
+" Progress or assembly
+au BufNewFile,BufRead *.i                      call s:FTprogress_asm()

-function! s:FTprogress_asm_initng()
+function! s:FTprogress_asm()
  if exists("g:filetype_i")
    exe "setf " . g:filetype_i
    return
  endif
-  " initng *.i files begin with #!/sbin/itype
-  if getline(1) ==# '#!/sbin/itype'
-     setf initng
-     return
-  endif
  " This function checks for an assembly comment the first ten lines.
  " If not found, assume Progress.
  let lnum = 1

Attachment: initng.vim
Description: Binary data

Reply via email to