sponsor Vim development Vim logo Vim Book Ad

mom.vim : Syntax highlighting for the troff macro package

 script karma  Rating 15/6, Downloaded by 770  Comments, bugs, improvements  Vim wiki

created by
Christian Brüssow
 
script type
syntax
 
description
Syntax highlighting for mom, a troff macro package, or as mom's homepage (http://faustus.dyn.ca/mom/mom.html) states: "mom is a typesetting and formatting package used to create high-quality, PostScript documents for printing."

This script is specialized for mom, although that is a troff macro package, this script does only have limited troff highlighting capabilities.
 
install details
Vim knows mom files (extension .mom), but highlights them as simple troff files. So you have to overwrite this behavior in your ~/vim/filetype.vim file, as described in the vim online help for "filetype". Add the following line to that file, as described in the vim help:

        au! BufRead,BufNewFile *.mom    setfiletype mom
 

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
mom.vim 0.1 2005-03-06 6.0 Christian Brüssow Initial upload
ip used for rating: 18.118.171.20

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