Display the github.com URL of the current line
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



This vim plugin allows you to type \ g in command mode to display the github.com URL of the current line.

If pbcopy is available, the URL will also be copied to the clipboard.


Option 1: Manual installation

  1. Clone the repository.

    $ git clone https://github.com/jtai/vim-githublink.git
  2. Move githublink.vim to your .vim/plugins directory.

    $ cd vim-githublink/plugins
    $ mv githublink.vim ~/.vim/plugins/

Option 2: Pathogen installation (recommended)

  1. Download and install Tim Pope's Pathogen.

  2. Clone the repository in the pathogen plugins directory.

    $ cd ~/.vim/bundle
    $ git clone https://github.com/jtai/vim-githublink.git