Vim Tips Wiki

Use this page to discuss script 979 idf: syntax highlighting for EnergyPlus IDF files

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


" Add custom folding to idf files along the OBJECT CLASSES
set foldexpr=getline(v:lnum)=~'^\\s*$'&&getline(v:lnum+1)=~'\\S'?'<1':1
set foldmethod=expr

--November 1, 2017