Skip to content

Commit

Permalink
Get GH links from current file in Vim
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmartin committed Apr 12, 2016
1 parent ecddeff commit bb20c37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions vimrc
Expand Up @@ -120,6 +120,12 @@ vnoremap <tab> %
call pathogen#infect()

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Get a github.com URL for the current file/line
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
command! Link :exec "!ghpath %:p " . line(".")
map <leader>l :Link<cr>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Run a given vim command on the results of fuzzy selecting from a given shell
" command. See usage below.
Expand Down

0 comments on commit bb20c37

Please sign in to comment.