Skip to content

A bundle of vimfiles for editing RDF data (syntaxes, completion, etc.)

Notifications You must be signed in to change notification settings

niklasl/vim-rdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim-RDF

This is a bundle of vimfiles for editing RDF data. It includes various RDF syntax highlighting and a plugin for RDF prefix completion.

Syntax highlighting

Plugins

RDF Prefix Completion

(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.)

About

A bundle of vimfiles for editing RDF data (syntaxes, completion, etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published