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

filetype of /etc/grub.conf is not detected

Expand Messages
  • Yakov Lerner
    On RedHat & Fedota linux, grub.conf is symlinked as follows: /etc/grub.conf - ../boot/grub/grub.conf File filetype.vim has this: au BufNewFile,BufRead
    Message 1 of 2 , Apr 2 6:06 AM
    View Source
    • 0 Attachment
      On RedHat & Fedota linux, grub.conf is symlinked as follows:
      /etc/grub.conf -> ../boot/grub/grub.conf

      File filetype.vim has this:
      au BufNewFile,BufRead /boot/grub/menu.lst,/boot/grub/grub.conf setf grub

      As a result, filetype of /etc/grub.conf if not detected properly. Vim
      does not set
      filetype to 'grub' on file /etc/grub.conf.
      Can this be fixed ?

      Thanks
      Yakov
    • Bram Moolenaar
      ... Sure. -- The problem with political jokes is that they get elected. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net ///
      Message 2 of 2 , Apr 2 6:36 AM
      View Source
      • 0 Attachment
        Yakov Lerner wrote:

        > On RedHat & Fedota linux, grub.conf is symlinked as follows:
        > /etc/grub.conf -> ../boot/grub/grub.conf
        >
        > File filetype.vim has this:
        > au BufNewFile,BufRead /boot/grub/menu.lst,/boot/grub/grub.conf setf=
        > grub
        >
        > As a result, filetype of /etc/grub.conf if not detected properly. Vim
        > does not set
        > filetype to 'grub' on file /etc/grub.conf.
        > Can this be fixed ?

        Sure.

        --
        The problem with political jokes is that they get elected.

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ download, build and distribute -- http://www.A-A-P.org ///
        \\\ help me help AIDS victims -- http://www.ICCF.nl ///
      Your message has been successfully submitted and would be delivered to recipients shortly.