sml.vim


Ⅰ. 插件描述

A vim script syntax definition for the Sparqlify Mapping Language

Ⅱ. 基本信息

创建日期:  2013-05-10
使用用户:  1
Github星:  4
插件作者:  Patrick Westphal

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'patrickwestphal/sparqlify-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'patrickwestphal/sparqlify-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'patrickwestphal/sparqlify-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/patrickwestphal/sml.vim

Ⅳ. 文档说明

sml.vim

A vim script syntax highlighting definition for the Sparqlification Mapping Language (SML).
See http://sml.aksw.org for more details.

How to Use

If you're using vim (on Unix-like systems), there should be a .vim/ directory in your home directory. To use the SML syntax highlighting script you have to copy the sml.vim file (or clone this repository) to ~/.vim/syntax/. Maybe you have to create the syntax directory first. To connect this syntax highlighting definitions with SML files, you have to add the following lines to your ~/.vimrc file:

au BufNewFile,BufRead *.sparqlify setfiletype sml
au BufNewFile,BufRead *.sml setfiletype sml

Now, if you open SML files (having the recommended filename suffixes .sml or .sparqlify) they should be syntax highlighted.

添加新评论