Gist.vim : vimscript for gist
| script karma |
Rating 81/24,
Downloaded by 1082 |
| created by |
| Yasuhiro Matsumoto |
| |
| script type |
| utility |
| |
| description |
This is vimscript for gist (http://gist.github.com)
Usage:
:Gist post whole text to gist.
:'<,'>Gist post selected text to gist.
:Gist -p post whole text to gist with private.
:Gist -a post whole text to gist with anonymous.
:Gist -e edit the gist. (shoud be work on gist buffer) you can update the gist with :w command on gist buffer.
:Gist -e foo.js edit the gist with name 'foo.js'. (shoud be work on gist buffer)
:Gist XXXXX get gist XXXXX.
:Gist -c XXXXX. get gist XXXXX and put to clipboard.
:Gist -l list gists from mine.
:Gist -la list gists from all.
Tips: if set g:gist_clip_command, gist.vim will copy the gist code with option '-c'.
# mac let g:gist_clip_command = 'pbcopy'
# linux let g:gist_clip_command = 'xclip -selection clipboard'
# others(cygwin?) let g:gist_clip_command = 'putclip'
if you want to detect filetype from filename...
let g:gist_detect_filetype = 1
if you want to open browser after the post...
let g:gist_open_browser_after_post = 1
if you want to change the browser...
let g:gist_browser_command = 'w3m %URL%'
or
let g:gist_browser_command = 'opera %URL% &'
on windows, should work with your setting.
Require: curl command (http://curl.haxx.se/) and if you want to use profile of git, it require git command.
|
| |
| install details |
copy it to your plugin directory.
|
| |
script versions (upload new version)
Click on the package to download.
| gist.vim |
3.2 |
2010-02-03 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for Gist.vim: added Gist header to recognize the gist. added script type header for Vimana.
|
| gist.vim |
3.1 |
2009-10-31 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for Gist.vim: fix checking redirect url.
|
| gist.vim |
3.0 |
2009-10-26 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for Gist.vim: fix for official changes(private button name was changed).
|
| gist.vim |
2.9 |
2009-10-26 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for Gist.vim: fix for official changes(private button name was changed).
|
| gist.vim |
2.7 |
2009-07-08 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for Gist.vim: be able to write the gist to local file with ':w foo.txt'.
|
| gist.vim |
2.6 |
2009-07-08 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for Gist.vim: fixed problem that does not work 'Gist XXXX'.
|
| gist.vim |
2.7 |
2009-07-03 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for Gist.vim: be able to write the gist to local file with ':w foo.txt'.
|
| gist.vim |
2.6 |
2009-06-09 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for Gist.vim: fixed problem that does not work 'Gist XXXX'.
|
|