Vim syntax and language settings for RAML
vim-raml
is now a part of Vim 8 and NeoVim! You likely don't need this unless you're using Vim 7.x.
vim-raml is a superset of Vim's own syntax settings for YAML, as RAML itself is a superset of YAML. Obviously, filetype detection is provided for RAML files as well to make use of the expanded syntax, as well language formatting defaults.
The best way to showcase vim-raml is really just to show it.
This is a RAML file highlighted with Vim's default YAML highlighting, using the popular solarized-dark theme.
And this is a RAML file highlighted with vim-raml:
You'll notice several changes:
<<thing>>
is highlighted inside of blocks and values.-, |, etc
are consistently highlighted (flaky in YAML).type: integer
. Supports all RAML datatypes. string, number, integer, date, boolean, and file./posts:
or /{id}:
vim-raml doesn't have any strange or esoteric requirements. Provided you're using Vundle, Pathogen or any of the other standard Vim plugin managers. You can install vim-raml exactly how you'd expect.
For completeness, to install via Vundle just add the following into your .vimrc with your other plugins
Plugin 'IN3D/vim-raml'
Then run:
:source %
:PluginInstall
Or for Pathogen:
cd ~/.vim/bundle
git clone https://github.com/IN3D/vim-raml.git
And Pathogen should pick it up the next time Vim is started.
If you have a question, suggestion, or have found an issue with vim-raml. The best way to bring it to my attention is to open an issue at https://github.com/IN3D/vim-raml/issues.
Copyright (c) Eric Hopkins. Distributed under the same terms as Vim itself.
See :help license
.