Wikia

Vim Tips Wiki

Changes: Script:731

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 2: Line 2:
   
 
==Automatic file type detection==
 
==Automatic file type detection==
Once the script file has been added to <tt>.vim/syntax/</tt>, it can be set to automatically enable highlighting for macro files by adding the following text in the file <tt>.vim/filetype.vim</tt>
+
Once the script file has been added to <code>.vim/syntax/</code>, it can be set to automatically enable highlighting for macro files by adding the following text in the file <code>.vim/filetype.vim</code>
   
 
<pre>
 
<pre>

Latest revision as of 09:53, July 14, 2012

Use this page to discuss script 731 xmidas: syntax highlighting for the X-Midas language

  • 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.

Automatic file type detectionEdit

Once the script file has been added to .vim/syntax/, it can be set to automatically enable highlighting for macro files by adding the following text in the file .vim/filetype.vim

au! BufRead,BufNewFile *.txt if getline(1) =~ 'STARTMACRO' | setf xmidas | endif

CommentsEdit

Around Wikia's network

Random Wiki