vim-denite-gists


Ⅰ. 插件描述

denite.nvim plugin for show and browse Gist

Ⅱ. 基本信息

创建日期:  2017-02-21
使用用户:  1
Github星:  9
插件作者:  pocari

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-denite-gists
wercker status

vim-denite-gists is a source for denite.nvim.

This plugin can open gist page with Denite interface.

vim-denite-gists-screenshot

depends

This plugin depends on:

install

For dein.vim

call dein#add('Shougo/denite.nvim')
call dein#add('tyru/open-browser.vim')
call dein#add('pocari/vim-denite-kind-open-browser')
call dein#add('pocari/vim-denite-gists')

usage

:Denite gists
or
:Denite gists:[github user name]

Default Action is open with open-browser.vim.

You can choose multiple candidates, and you can open them by multiple browser tab.

github user detection

  1. argument on startup

    Denite gists:pocari

  2. from your .gitconfig

    if following section exists in your gitconfig, it is used.

    e.g) ~/.gitconfig

    [github]
        user = pocari
  3. no argument and no github section in gitconfig

    A prompt for entering the user name is displayed at startup.

Tips

resume

:Denite gists is slow because it uses web API call.
So, if you know that gist contents are not changed, you can run like this.

Denite gists -buffer-name=gists -resume

And, when you want to refresh,

Denite gists -buffer-name=gists -resume -refresh

添加新评论