A VIM plugin to add syntax highlighting to your YARD tags.
Vim script
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead of postmodern:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



A VIM plugin which:

  • adds syntax highlighting to your YARD tags.
  • adds snipmate style YARD snippets (ported from textmate).


If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/jasonsydes/vim-yard.git

To get the YARD snippets working with Ruby (without stepping on existing snippets), I have something like the following in my .vimrc:

let g:snipMate = {}
let g:snipMate.scope_aliases = {}
let g:snipMate.scope_aliases['ruby'] = 'ruby,ruby-yard'

There's definitely a slicker way to do add the ruby-yard stanza to scope_aliases within the plugin itself without overwriting any existing settings, but I'm relatively new to vim for the moment. Please feel free to contact me with suggestions (via email or forks).


Thanks to Postmodern for their YARD syntax highlighting from which this fork is derived.