vim-github-hub


Ⅰ. 插件描述

A Vim filetype plugin for github/hub :zap:

Ⅱ. 基本信息

创建日期:  2016-06-10
使用用户:  21
Github星:  50
插件作者:  Jake Zimmerman

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-github-hub

A Vim filetype plugin for github/hub :zap:

screenshot 2016-06-10 00 37 07

This plugin does filetype detection and syntax highlighting for buffers/files
created by github/hub, a utility for working with Git + GitHub
from the command line. In particular, this plugin does fancy things when you're
using hub to create new issues and pull requests.

Features

  • Detect ISSUE_EDITMSG and PULLREQ_EDITMSG as a custom filetype.
  • Use this custom filetype to highlight as markdown

    • Support vim-pandoc syntax highlighting if we see it installed
  • Detect comment character to highlight comments appropriately

    • Thus, if you use an alternate comment character with hub, ATX-style headings
      are highlighted correctly.

Install

Install using your favorite plugin manager. For example, to install using
Vundle, add this line to your ~/.vimrc:

Plugin 'jez/vim-github-hub'

If you're unfamiliar with using Vim plugins, check out Vim as an IDE which
will get you up to speed.

Independently of installing the plugin, if you'd like to use % as the comment
character with hub, I recommend these aliases:

# Markdown pull request with hub
alias hubmdpr="hub -c core.commentChar='%' pull-request"

# Markdown issue with hub
alias hubmdis="hub -c core.commentChar='%' issue create"

Contributing

I actively welcome pull requests and issues. Feel free open them at your
leisure.

License

MIT License

Copyright Jake Zimmerman. <jake@zimmerman.io>

添加新评论