Skip to content

Instantly share code, notes, and snippets.

@tammersaleh
Created December 13, 2008 22:40

Revisions

  1. tsaleh created this gist Dec 13, 2008.
    10 changes: 10 additions & 0 deletions gist.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    system('open '.res)
    endfunction

    function! Gist(line1, line2, ...)
    if !exists('g:github_user')
    let g:github_user = substitute(system('git config --global github.user'), "\n", '', '')
    endif
    if !exists('g:github_token')
    let g:github_token = substitute(system('git config --global github.token'), "\n", '', '')
    endif