Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jez/vim-github-hub
A Vim filetype plugin for github/hub :zap:
https://github.com/jez/vim-github-hub
github hub vim
Last synced: 21 days ago
JSON representation
A Vim filetype plugin for github/hub :zap:
- Host: GitHub
- URL: https://github.com/jez/vim-github-hub
- Owner: jez
- Created: 2016-06-10T06:34:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-26T04:41:45.000Z (over 1 year ago)
- Last Synced: 2024-08-02T05:13:24.503Z (3 months ago)
- Topics: github, hub, vim
- Language: Vim Script
- Homepage:
- Size: 271 KB
- Stars: 49
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-github-hub
> A Vim filetype plugin for [github/hub][hub] :zap:
![A screenshot of this plugin in action](vim-github-hub.png)
This plugin does filetype detection and syntax highlighting for buffers/files
created by [github/hub][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][vim-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:```shell
# 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](https://img.shields.io/badge/license-MIT-blue.svg)](https://jez.io/MIT-LICENSE.txt)
Copyright Jake Zimmerman.
[hub]: https://github.com/github/hub
[vim-ide]: https://github.com/jez/vim-as-an-ide