1
1
*Gist.vim* Vimscript for creating gists (http://gist.github.com )
2
2
3
- Usage | gist- vim-usage|
4
- Tips | gist- vim-tips|
5
- License | gist- vim-license|
6
- Install | gist- vim-install|
7
- Requirements | gist- vim-requirements|
8
- Setup | gist- vim-setup|
9
- FAQ | gist- vim-faq|
3
+ Usage | vim-gist -usage |
4
+ Tips | vim-gist -tips |
5
+ License | vim-gist -license |
6
+ Install | vim-gist -install |
7
+ Requirements | vim-gist -requirements |
8
+ Setup | vim-gist -setup |
9
+ FAQ | vim-gist -faq |
10
10
11
11
This is a vimscript for creating gists (http://gist.github.com )
12
12
13
- For the latest version please see https://github.com/mattn/gist- vim .
13
+ For the latest version please see https://github.com/mattn/vim-gist .
14
14
15
15
==============================================================================
16
- USAGE *:Gist* *gist- vim-usage*
16
+ USAGE *:Gist* *vim-gist -usage*
17
17
18
18
- Post current buffer to gist, using default privacy option. >
19
19
@@ -120,15 +120,15 @@ USAGE *:Gist* *gist-vim-usage*
120
120
- While the gist list is visible, the following mappings apply:
121
121
122
122
- 'o' or 'Enter' will open the selected gist file in a new buffer
123
- and close the gist- vim listing split.
123
+ and close the vim-gist listing split.
124
124
- 'b' will open the selected gist file in a browser. If you are in
125
125
GUI vim you can also achieve this by pressing 'Shift-Enter'.
126
126
- 'y' will copy the contents of the selected gist to the clipboard,
127
- and close the gist- vim listing split.
127
+ and close the vim-gist listing split.
128
128
- 'p' will (copy and) paste the contents of the selected gist to the
129
- buffer from which gist- vim was called, and close the gist- vim
129
+ buffer from which vim-gist was called, and close the vim-gist
130
130
listing split.
131
- - 'Esc' will close the gist- vim listing split without performing any
131
+ - 'Esc' will close the vim-gist listing split without performing any
132
132
further action.
133
133
134
134
- Open the gist on browser after you post or update it.
@@ -141,7 +141,7 @@ USAGE *:Gist* *gist-vim-usage*
141
141
:Gist!
142
142
<
143
143
==============================================================================
144
- TIPS *gist- vim-tips*
144
+ TIPS *vim-gist -tips*
145
145
146
146
If you set "g:gist_clip_command", gist.vim will copy the gist code with option
147
147
"-c".
@@ -216,13 +216,13 @@ in your local file, then call >
216
216
217
217
:Gist
218
218
219
- The gist- vim listing split lists gists ids, names (filenames) as well as
219
+ The vim-gist listing split lists gists ids, names (filenames) as well as
220
220
their description. This is done following a table layout, with fixed space
221
- for each column. For offering quick browsing, gist- vim will truncate all
221
+ for each column. For offering quick browsing, vim-gist will truncate all
222
222
output exceeding the available horizontal space, assuring that every gist
223
223
listed only takes one line on the table. Although the gist id field width is
224
224
fixed internally, the user can define the length of the (file)name field on
225
- the gist- vim listing. This can be done by the following declaration:
225
+ the vim-gist listing. This can be done by the following declaration:
226
226
227
227
let g:gist_namelength = 20
228
228
@@ -241,7 +241,7 @@ All other values are treated as 1.
241
241
This variable's value is 1 by default.
242
242
243
243
==============================================================================
244
- LICENSE *gist- vim-license*
244
+ LICENSE *vim-gist -license*
245
245
246
246
247
247
Copyright 2010 by Yasuhiro Matsumoto
@@ -267,15 +267,15 @@ LICENSE *gist-vim-license*
267
267
OF THE POSSIBILITY OF SUCH DAMAGE.
268
268
269
269
==============================================================================
270
- INSTALL *gist- vim-install*
270
+ INSTALL *vim-gist -install*
271
271
272
272
Copy following files into your plugin directory.
273
273
274
274
rtp:
275
275
- autoload/gist.vim
276
276
- plugin/gist.vim
277
277
278
- If you want to uninstall gist.vim, remember to also remove `~/.gist- vim ` .
278
+ If you want to uninstall gist.vim, remember to also remove `~/.vim-gist ` .
279
279
280
280
You need to install webapi-vim also:
281
281
@@ -286,17 +286,17 @@ If you want to use latest one:
286
286
https://github.com/mattn/webapi-vim
287
287
288
288
==============================================================================
289
- REQUIREMENTS *gist- vim-requirements*
289
+ REQUIREMENTS *vim-gist -requirements*
290
290
291
291
- curl command (http://curl.haxx.se/ )
292
292
- webapi-vim (https://github.com/mattn/webapi-vim )
293
293
- and, if you want to use your git profile, the git command-line client.
294
294
295
295
==============================================================================
296
- SETUP *gist- vim-setup*
296
+ SETUP *vim-gist -setup*
297
297
298
- This plugin uses GitHub API v3. The authentication value is stored in `~/.gist- vim ` .
299
- gist- vim provides two ways to authenticate against the GitHub APIs.
298
+ This plugin uses GitHub API v3. The authentication value is stored in `~/.vim-gist ` .
299
+ vim-gist provides two ways to authenticate against the GitHub APIs.
300
300
301
301
First, you need to set your GitHub username in global git config:
302
302
>
@@ -312,7 +312,7 @@ If you have two-factor authentication enabled on GitHub, you'll see the message
312
312
"Must specify two-factor authentication OTP code." In this case, you need to
313
313
create a "Personal Access Token" on GitHub's "Account Settings" page
314
314
(https://github.com/settings/applications ) and place it in a file
315
- named ~/.gist- vim like this:
315
+ named ~/.vim-gist like this:
316
316
>
317
317
token xxxxx
318
318
<
@@ -331,13 +331,13 @@ This is not secure at all, so strongly discouraged.
331
331
NOTE: the username is optional if you only send anonymous gists.
332
332
333
333
==============================================================================
334
- FAQ *gist- vim-faq*
334
+ FAQ *vim-gist -faq*
335
335
336
336
Q. :Gist returns a Forbidden error
337
- A. Try deleting ~/.gist- vim and authenticating again.
337
+ A. Try deleting ~/.vim-gist and authenticating again.
338
338
339
339
==============================================================================
340
- THANKS *gist- vim-thanks*
340
+ THANKS *vim-gist -thanks*
341
341
342
342
AD7six
343
343
Bruno Bigras
0 commit comments