Ⅰ. 插件描述
Syntax highlighting for MediaWiki articlesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/wikipedia-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/wikipedia-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/wikipedia-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/wikipedia.vim
Ⅳ. 文档说明
This file is for people who use external editors to work on articles on Wikipedia and other MediaWiki sites. Please note that I didn't write this -- it was downloaded from http://en.wikipedia.org/wiki/Wikipedia%3AText_editor_support#Vim and may well be more up-to-date there. If the version here is out of date contact me and I'll upload the improved version.
Version 1 of this script also contains a few settings to better deal with the fact that MediaWiki articles only contain newlines between paragraphs, you may prefer to remove those and put them in ~/.vim/ftplugin/Wikipedia.vim. In version 2 these have been moved to a separate file.