Screenshot (theme: PaperColor)
This plugin provides Apache Maven syntax highlighting on top of XML.
Copy syntax
and ftdetect
folders into your ~/.vim/
(or vimfiles/
on Windows)
Or simply use a plugin manager like Vundle (recommended for easy :PluginUpdate
):
Plugin 'NLKNguyen/vim-maven-syntax'
Manually: :set filetype=xml.maven
Automatically: pom.xml
file is detected to automatically set the filetype as above.
The syntax/maven.vim
file is auto generated by a small Node.js script (generate-syntax-file.js) based on the syntax mapping rules declared in a YAML config file (syntax_mapping.yml)
Adding or changing the list of Maven tag names can be done simply by modifying the YAML file then rerunning the Node.js script to generate a new syntax file.
Install dependencies with Node.js Package Manager:
$ npm install
After modifying the YAML file, run this to generate a new syntax file:
$ node generate-syntax-file.js
Story behind the project: Maven Syntax Highlighting Plugin for Vim
Suggestions/Wishes/Questions/Comments are welcome via Github issues or via the blog above.
Copyright 2016 Nguyen Nguyen