Ⅰ. 插件描述
Wrapper on top of `mdn-cli` for nvimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mklabs/mdn-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mklabs/mdn-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mklabs/mdn-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mklabs/mdn.vim
Ⅳ. 文档说明
# mdn.vim
Wrapper on top of mdn-cli for nvim. Provides a :Mdn <search terms> command
to query http://mdn.io, parse the HTML result and fill in a vertical buffer
with MDN documentation.
Mainly do play around with neovim's remote plugin API.
Usable only with neovim, unless rplugin/node code is ported over to vimscript
Installation
- Install node-host.
- Extract the files and put them in your VIM directory (usually
~/.vim/)
If you don't have a preferred installation method, I recommend installing
vim-plug and using the following configuration:
Plug 'neovim/node-host'
Plug 'mklabs/mdn.vim'
:Mdn <search term>
Accepts n* number of arguments. Will vertical split a non modifiable buffer
with the content of the relevant MDN page.