vim-marked


Ⅰ. 插件描述

Open the current Markdown buffer in Marked.app

Ⅱ. 基本信息

创建日期:  2012-02-07
使用用户:  200
Github星:  95
插件作者:  Joshua Priddle

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# marked.vim

Open the current Markdown buffer in Marked. Supports
Marked 1 and 2.

Note: Since Marked is available only for OS X, this plugin will not be loaded
unless you are on OS X.

Configuration

By default, this plugin is configred to use Marked 2. If you are still using
Marked version 1, set the following in your ~/.vimrc:

let g:marked_app = "Marked"

If you need to enable the plugin for custom Vim FileTypes:

let g:marked_filetypes = ["markdown", "mkd", "ghmarkdown", "vimwiki"]

Usage

This plugin adds the following commands to Markdown buffers:

:MarkedOpen[!]          Open the current Markdown buffer in Marked. Call with
                        a bang to prevent Marked from stealing focus from Vim.
                        Documents opened in Marked are tracked and closed
                        automatically when you quit Vim.

:MarkedQuit             Close the current Markdown buffer in Marked. Quits
                        Marked if there are no other documents open.

:MarkedToggle[!]        If the current Markdown buffer is already open in
                        Marked, calls :MarkedQuit. If not, calls
                        :MarkedOpen[!].

License

Same as Vim itself, see :help license.

添加新评论