Vim Tips Wiki
Advertisement

Use this page to discuss script 2930 rfc syntax: simple syntax highlight for RFC file

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments[]

Detect drafts[]

Used this to detect draft files (without ext) too:

   if expand('%:t') =~? 'rfc\d\+' || expand('%:t') =~? 'draft-.*-\d\{2,}'
       setfiletype rfc
   endif
Advertisement