67

GitHub - ruanyl/vim-gh-line: vim plugin that open the link of current line on gi...

 6 years ago
source link: https://github.com/ruanyl/vim-gh-line
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.

README.md

vim-gh-line

A vim plugin that open the link to current line at Github

gh-line

How to install

Vundle

Put this in your .vimrc

Bundle 'ruanyl/vim-gh-line'

Then restart vim and run :BundleInstall. To update the plugin to the latest version, you can run :BundleUpdate.

How to use

Default key mapping: <leader>gh

To disable default key mapping:

let g:gh_line_map_default = 0

Use your own mapping:

let g:gh_line_map = '<leader>gh'

Use a custom program to open link:

let g:gh_open_command = 'open '

Use canonical version hash for url in place of branch name:

let g:gh_use_canonical = 1

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK