vimからgistを使う。

vimでGistを使うプラグインgist-vimの導入と使い方を簡単にまとめました。

Step1
githubからgit-vimをcloneする

git clone git://github.com/mattn/gist-vim.git

Step2
READMEを一通り読む

Step3
gist-vim導入

$HOME/.vim/plugin/gist.vim
$HOME/.vim/autoload/gist.vim

 

Step4
git config設定
or
.vimrcにgithubの設定追記

Step5(省略可能)
curlが無ければインストール

Step6(省略可能)
Proxy設定

curl -x PROXYID:PORT -u : -U :

Step7
テキストをGistする

:Gist

その他コマンド

・保存

:w

・description設定

:Gist -e -s コメント

・Gist一覧

:Gist -l

・削除

:Gist -d

・fork

:Gist -f

このエントリーをはてなブックマークに追加
はてなブックマーク - vimからgistを使う。
Share on Facebook
Post to Google Buzz
Bookmark this on Yahoo Bookmark
Bookmark this on Livedoor Clip
Share on FriendFeed

Leave a Reply

  

  

  

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax