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.
-
Clone the repository.
$ git clone https://github.com/jtai/vim-githublink.git
-
Move
githublink.vim
to your.vim/plugins
directory.$ cd vim-githublink/plugins $ mv githublink.vim ~/.vim/plugins/
-
Download and install Tim Pope's Pathogen.
-
Clone the repository in the pathogen plugins directory.
$ cd ~/.vim/bundle $ git clone https://github.com/jtai/vim-githublink.git