MediaWiki folding and syntax highlight


Ⅰ. 插件描述

folding support for MediaWiki-style syntax

Ⅱ. 基本信息

创建日期:  2009-06-27
使用用户:  1
Github星:  1
插件作者:  Attila Nagy

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/mediawiki-folding-and-syntax-highlight'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/mediawiki-folding-and-syntax-highlight'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/mediawiki-folding-and-syntax-highlight'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/MediaWiki-folding-and-syntax-highlight

Ⅳ. 文档说明

This syntax file adds not only syntax highlight, but also folding for MediaWiki-style wikitext. (This is the syntax that Wikipedia uses, among many other sites.) I've been using it for 3 years now, and while it isn't bug-free, it's reasonably mature.

Note: if folding seems broken (this does happen with long and complicated files), do ":syntax sync fromstart". Also, you may find the "It's All Text!" Firefox-extension useful: https://addons.mozilla.org/en-US/firefox/addon/4125

添加新评论