#Setup Vim Gist Plugin
Ok, we're going to setup vim-gist via https://github.com/tpope/vim-pathogen. To install Pathogen:
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
Then add the following lines to your vimrc:
execute pathogen#infect()
syntax on
filetype plugin indent on
The Gist plugin needs https://github.com/mattn/webapi-vim:
cd ~/.vim/bundle && \
git clone https://github.com/mattn/webapi-vim.git
Then install the Gist plugin:
cd ~/.vim/bundle && \
git clone https://github.com/mattn/gist-vim
Then setup your github username like so:
git config --global github.user <username>
Then open up vim and run:
:Gist
It'll ask for your github password and if it works you'll see a line line the following:
Done: https://gist.github.com/62963b0a06c03563ea4e
Thanks!