Many programs store configuration information in text files with <tt>.ini</tt> extension ("dosini" file type). An example of a section from an ini file is:

+

Many programs store configuration information in text files with <code>.ini</code> extension ("dosini" file type). An example of a section from an ini file is:

<pre>

<pre>

[Preferences]

[Preferences]

Line 19:

Line 19:

</pre>

</pre>

−

Vim includes file <tt>syntax/dosini.vim</tt> for syntax highlighting. This tip shows two enhancements: Folding sections, and correct highlighting when heredoc-style parameters are used.

+

Vim includes file <code>syntax/dosini.vim</code> for syntax highlighting. This tip shows two enhancements: Folding sections, and correct highlighting when heredoc-style parameters are used.

==Folding sections==

==Folding sections==

−

You can enable folding of dosini sections by placing a script in file <tt>~/.vim/after/syntax/dosini.vim</tt> on Unix-based systems, or in file <tt>$HOME/vimfiles/after/syntax/dosini.vim</tt> on Windows systems.

+

You can enable folding of dosini sections by placing a script in file <code>~/.vim/after/syntax/dosini.vim</code> on Unix-based systems, or in file <code>$HOME/vimfiles/after/syntax/dosini.vim</code> on Windows systems.