This is a bundle of vimfiles for editing RDF data. It includes various RDF syntax highlighting and a plugin for RDF prefix completion.
- Turtle
- TriG
- Notation 3 (also available on Vim.org as n3.vim)
- JSON-LD
- RDFa in HTML
(Prerequisites: Python 3 support in Vim and RDFLib installed in a Python environment available to Vim (I use vim-virtualenv).)
Call
:RDF
to enable. This automatically sets up the omnifunc (invoked with CTRL-X CTRL-O
in insert mode) to complete on RDF prefixes. It uses http://prefix.cc/
under the hood, and automatically dereferences and caches RDF vocabularies when
completing on defined prefixes.
It also maps d so you can jump from a term to a term definition (in a separate window).
Turning this off with :RDF quit
restores any original omnifunc.
(And older version of this plugin is available on Vim.org as RDF Namespace-complete.)