Loading ...
Sorry, an error occurred while loading the content.

[PATCH] add syntax file for apt.conf

Expand Messages
  • bilibop project
    Hi, This patch adds support for APT config files. ... +++ b/runtime/filetype.vim 2012-10-05 00:00:35.989972876 +0200 @@ -112,6 +112,11 @@ Apache config
    Message 1 of 2 , Oct 4, 2012
    • 0 Attachment
      Hi,

      This patch adds support for APT config files.
      Please let me know if it is in an appropriate format:

      --- a/runtime/filetype.vim 2012-10-04 23:57:11.704541092 +0200
      +++ b/runtime/filetype.vim 2012-10-05 00:00:35.989972876 +0200
      @@ -112,6 +112,11 @@
      " 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 */etc/apt/apt.conf.d/{[-_[:alnum:]]\+,[-_.[:alnum:]]\+.conf} setf aptconf
      +
      " XA65 MOS6510 cross assembler
      au BufNewFile,BufRead *.a65 setf a65

      Thanks
      quidame

      --
      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
    • Bram Moolenaar
      ... Looks good. I ll include it. Please don t forget to email me a new version if you make improvements. Oh, which running my test script I notice that you
      Message 2 of 2 , Oct 5, 2012
      • 0 Attachment
        Quidame wrote:

        > This patch adds support for APT config files.
        > Please let me know if it is in an appropriate format:

        Looks good. I'll include it.

        Please don't forget to email me a new version if you make improvements.

        Oh, which running my test script I notice that you need to set 'cpo' for
        the line continuation:

        Near the top:

        let s:cpo_save = &cpo
        set cpo&vim

        And at the end:

        let &cpo = s:cpo_save
        unlet s:cpo_save



        --
        ARTHUR: If you do not open these doors, we will take this castle by force ...
        [A bucket of slops land on ARTHUR. He tries to retain his dignity.]
        "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ an exciting new programming language -- http://www.Zimbu.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

        --
        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
      Your message has been successfully submitted and would be delivered to recipients shortly.