Skip to content

Instantly share code, notes, and snippets.

@kentaro
Created November 5, 2013 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kentaro/7320423 to your computer and use it in GitHub Desktop.
Save kentaro/7320423 to your computer and use it in GitHub Desktop.
はじめてのVim script
function! GitBrowseRemoteAtLine()
ruby << EOF
`git browse-remote -L#{VIM::Window.current.cursor.first} -- #{VIM::Buffer.current.name}`
EOF
endfunction
:command! GitBrowseRemoteAtLine :call GitBrowseRemoteAtLine()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment