GitHub - tpope/vim-rhubarb: rhubarb.vim: GitHub extension for fugitive.vim
source link: https://github.com/tpope/vim-rhubarb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
rhubarb.vim
If fugitive.vim is the Git, rhubarb.vim is the Hub. Here's the full list of features:
-
Enables
:GBrowse
from fugitive.vim to open GitHub URLs. -
In commit messages, GitHub issues, issue URLs, and collaborators can be omni-completed (
<C-X><C-O>
, see:help compl-omni
). This makes inserting thoseCloses #123
remarks slightly easier than copying and pasting from the browser.
Installation
If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:
cd ~/.vim/bundle
git clone https://github.com/tpope/vim-rhubarb.git
vim -u NONE -c "helptags vim-rhubarb/doc" -c q
You'll also need fugitive.vim.
Curl (included with macOS) is required for features
that use the GitHub API (i.e., :GBrowse
doesn't need it).
Generate a personal access token
with repo permissions and add it to your .netrc
:
echo 'machine api.github.com login <user> password <token>' >> ~/.netrc
If you are using GitHub Enterprise, repeat this step for each domain (omit the
api.
portion). You'll also need to tell Rhubarb the root URLs:
let g:github_enterprise_urls = ['https://example.com']
How do I turn off that preview window that shows the issue body?
set completeopt-=preview
What happened to the support for
hub
?
Support was dropped partially because GitHub CLI
appears to be unseating it as the preferred GitHub command line solution, and
partially because hub
isn't quite a perfect drop-in replacement for git
,
making life more difficult for Fugitive. My recommended solution is to call
it via a Git alias:
git config --global alias.hub '!hub'
This will let you call hub pull-request
via :Git hub pull-request
, for
example.
Self-Promotion
Like rhubarb.vim? Follow the repository on GitHub. And if you're feeling especially charitable, follow tpope on Twitter and GitHub.
Recommend
-
186
pathogen.vim Manage your 'runtimepath' with ease. In practical terms, pathogen.vim makes it super easy to install plugins and runtime files in their own private directories. For new users, I recommend using Vi...
-
133
fugitive.vim Fugitive is the premier Vim plugin for Git. Or maybe it's the premier Git plugin for Vim? Either way, it's "so awesome, it should be illegal". That's why it's called Fugitive. The crown jewel of Fugitive is :G...
-
206
Files Permalink Latest commit message Commit time...
-
158
rails.vim This is a massive (in a good way) Vim plugin for editing Ruby on Rails applications. Easy navigation of the Rails directory structure. gf considers context and knows about partials, fixtures, and m...
-
125
commentary.vim Comment stuff out. Use gcc to comment out a line (takes a count), gc to comment out the target of a motion (for example, gcap to comment out a paragraph), gc in visual mo...
-
89
INTRODUCTION Merginal aims to provide a nice interface for dealing with Git branches. It offers interactive TUI for: Viewing the list of branches Checking out branches from that list Creating new branches
-
80
fugitive-gitlab.vim - An extension to fugitive.vim for gitlab support
-
33
Rhubarb See Wiki page Rhubarb is a lightweight WebSocket library for multiplayer HTML5 games. It is originally designed to be used by the
-
3
vim-sexp mappings for regular people I'm really liking my first impressions of vim-sexp. It's like paredit minus a couple of parts of paredit that are impossibly tricky to implement in...
-
3
动漫人物嘴唇声音同步开源工具-Rhubarb Lip Sync – 开源派 rhubarb-lip-sync是一个基于语音让动漫人物嘴唇实现音画同步的命令行开源工具,开发者可将其应用于计算机游戏、动画卡通角色、视频 Vlog...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK