sponsor Vim development Vim logo Vim Book Ad

ini syntax definition : A syntax definition for ini files, including hgrc files.

 script karma  Rating 15/11, Downloaded by 1870  Comments, bugs, improvements  Vim wiki

created by
Peter Hosey
 
script type
syntax
 
description
This is a syntax definition for configuration files in the ini format, common on Windows and for software written in Python. This includes the popular version-control system Mercurial, whose hgrc configuration files are ini files.

Mercurial repository for this syntax definition: http://bitbucket.org/boredzo/vim-ini-syntax/

 
install details
First, copy this file to ~/.vim/syntax/ini.vim. (You will need to create that directory, if you haven't already.)

Then, to make vim automatically use that syntax definition for .ini and hgrc files, you'll need to add this to your ~/.vim/filetype.vim file (which you will need to create, if you haven't already):

au BufNewFile,BufRead *.ini,*/.hgrc,*/.hg/hgrc setf ini

 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-ini-syntax-03.zip 03 2009-05-18 7.0 Peter Hosey Same as v2, which was missing its ini.vim file for some reason (?!).
vim-ini-syntax-02.zip 02 2008-12-08 7.0 Peter Hosey Added support for comments.
vim-ini-syntax-01.zip 01 2008-12-08 7.2 Peter Hosey Initial upload
ip used for rating: 3.15.197.123

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github