vim-gh-preview


Ⅰ. 插件描述

Vim plugin for gh-preview

Ⅱ. 基本信息

创建日期:  2015-02-05
使用用户:  1
Github星:  1
插件作者:  Felix Schlitter

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/felixschl/vim-gh-preview

Ⅳ. 文档说明

# Vim - Github Markdown Preview

npm version

Vim plugin for gh-preview —
Github markdown preview, as you type.

preview

Getting started

Install gh-preview:

$ npm install -g gh-preview@1.0.0-next

Once installed, vim-gh-preview should just work.

Options

Below are the overridable defaults for the options exposed by this plugin:

" Should the server start automatically when editing markdown files?
" If something is already listening at `g:ghp_port`, it is assumed to be an
" existing gh-preview server and a new server is *NOT* started.
let g:ghp_start_server = 1

" Should the browser page be opened automatically?
let g:ghp_open_browser = 1

" The port `gh-preview` (is running | will be started) at
let g:ghp_port = 1234

Installation - Plugged.vim

Plug 'felixSchl/vim-gh-preview'

Installation - Vundle.vim

Plugin 'felixSchl/vim-gh-preview'

添加新评论