Wikia

Vim Tips Wiki

Script:731

Talk0
1,613pages on
this wiki

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