1 *Gist.vim* Vimscript for creating gists (http://gist.github.com)
5 Requirements |gist-vim-requirements|
6 License |gist-vim-license|
7 Install |gist-vim-install|
9 This is a vimscript for creating gists (http://gist.github.com)
11 For the latest version please see https://github.com/mattn/gist-vim.
13 ==============================================================================
14 USAGE *:Gist* *gist-vim-usage*
16 - Post current buffer to gist, using default privacy option. >
20 - Post selected text to gist, using defualt privacy option.
21 This applies to all permutations listed below (except multi). >
25 - Create a private gist. >
29 - Create a public gist.
30 (Only relevant if you've set gists to be private by default.) >
34 - Post whole text to gist as public.
35 This is only relevant if you've set gists to be private by default;
36 if you get an empty gist list, try ":Gist --abandon". >
40 - Post whole text to gist as public.
41 This is only relevant if you've set gists to be private by default.
42 If you get an empty gist list, try ":Gist --abandon". >
46 - Create a gist anonymously. >
50 - Create a gist with all open buffers. >
54 - Edit the gist (you need to have opened the gist buffer first).
55 You can update the gist with the {:w} command within the gist buffer. >
59 - Edit the gist with name "foo.js" (you need to have opened the gist buffer
64 - Delete the gist (you need to have opened the gist buffer first).
65 Password authentication is needed. >
69 - Fork the gist (you need to have opened the gist buffer first).
70 Password authentication is needed. >
78 - Get gist XXXXX and add to clipboard. >
82 - List your public gists. >
86 - List gists from user "mattn". >
90 - List all (public and private) of your gists. >
95 ==============================================================================
98 If you set "g:gist_clip_command", gist.vim will copy the gist code with option
102 let g:gist_clip_command = 'pbcopy'
105 let g:gist_clip_command = 'xclip -selection clipboard'
107 - Others (cygwin?): >
108 let g:gist_clip_command = 'putclip'
110 If you want to detect filetype from the filename: >
112 let g:gist_detect_filetype = 1
114 If you want to open the browser after the post: >
116 let g:gist_open_browser_after_post = 1
118 If you want to change the browser: >
120 let g:gist_browser_command = 'w3m %URL%'
124 let g:gist_browser_command = 'opera %URL% &'
126 On windows, this should work with your user settings.
128 If you want to show your private gists with ":Gist -l": >
130 let g:gist_show_privates = 1
132 If you get problems when creating gists try: >
137 ==============================================================================
138 REQUIREMENTS *gist-vim-requirements*
140 - Curl command (http://curl.haxx.se/)
141 - and, if you want to use your git profile, the git command-line client.
143 ==============================================================================
144 LICENSE *gist-vim-license*
147 Copyright 2010 by Yasuhiro Matsumoto
148 modification, are permitted provided that the following conditions are met:
150 1. Redistributions of source code must retain the above copyright notice,
151 this list of conditions and the following disclaimer.
152 2. Redistributions in binary form must reproduce the above copyright notice,
153 this list of conditions and the following disclaimer in the documentation
154 and/or other materials provided with the distribution.
156 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
157 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
158 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
159 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
160 REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
161 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
162 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
163 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
164 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
165 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
166 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
167 OF THE POSSIBILITY OF SUCH DAMAGE.
169 ==============================================================================
170 INSTALL *gist-vim-install*
172 Copy gist.vim to your plugin directory.
174 gist.vim will create a curl cookie-jar file in your runtimepath.
180 If you want to uninstall gist.vim, remember to also remove "cookies/github".
182 vim:tw=78:ts=8:ft=help:norl: