Skip to content

Commit 2158ece

Browse files
committed
Rename
1 parent c1f9b5a commit 2158ece

File tree

6 files changed

+41
-355
lines changed

6 files changed

+41
-355
lines changed

Makefile

-11
This file was deleted.

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a vimscript for creating gists (http://gist.github.com).
44

5-
For the latest version please see https://github.com/mattn/gist-vim.
5+
For the latest version please see https://github.com/mattn/vim-gist.
66

77
## Usage:
88

@@ -103,14 +103,14 @@ For the latest version please see https://github.com/mattn/gist-vim.
103103

104104
- Useful mappings on the gist-listing buffer:
105105
- Both `o` or `Enter` open the gist file in a new buffer, and close the
106-
gist-vim listing one.
106+
vim-gist listing one.
107107
- `b` opens the gist file in a browser; this is necessary because
108108
`Shift-Enter` (as was originally) only works for GUI vim.
109109
- `y` copies the contents of the selected gist to the clipboard, and
110-
closes the gist-vim buffer.
110+
closes the vim-gist buffer.
111111
- `p` pastes the contents of the selected gist to the buffer from where
112-
gist-vim was called, and closes the gist-vim buffer.
113-
- Hitting `Escape` or `Tab` at the gist-vim buffer closes it.
112+
vim-gist was called, and closes the vim-gist buffer.
113+
- Hitting `Escape` or `Tab` at the vim-gist buffer closes it.
114114

115115
- Gist listing has fixed-length columns now, more amenable to eye inspection.
116116
Every line on the gist-listing buffer contains the gist id, name and
@@ -237,15 +237,15 @@ If you want to use latest one:
237237
Add the following lines to your `.vimrc`.
238238

239239
Bundle 'mattn/webapi-vim'
240-
Bundle 'mattn/gist-vim'
240+
Bundle 'mattn/vim-gist'
241241

242242
Now restart Vim and run `:BundleInstall`.
243243

244244
### Install with [NeoBundle](https://github.com/Shougo/neobundle.vim)
245245

246246
Add the following line to your `.vimrc`.
247247

248-
NeoBundle 'mattn/gist-vim', {'depends': 'mattn/webapi-vim'}
248+
NeoBundle 'mattn/vim-gist', {'depends': 'mattn/webapi-vim'}
249249

250250
## Requirements:
251251

@@ -262,15 +262,15 @@ First, you need to set your GitHub username in git's global configuration:
262262

263263
$ git config --global github.user <username>
264264

265-
Then gist-vim will ask for your password in order to create an access
266-
token. If you have two-factor authentication enabled, gist-vim will also
265+
Then vim-gist will ask for your password in order to create an access
266+
token. If you have two-factor authentication enabled, vim-gist will also
267267
prompt you to enter the two-factor key you receive.
268268

269269
NOTE:
270270
If you want you can set it directly to `g:github_user` and `g:gist_token`.
271271

272272
Whichever type of authentication you use, your GitHub password will not be
273-
stored, only a OAuth access token produced specifically for gist-vim. The
273+
stored, only a OAuth access token produced specifically for vim-gist. The
274274
token is stored in `~/.gist-vim`. If you stop using the plugin, you can
275275
easily remove this file. To revoke the associated GitHub token, go to the
276276
list of ["Authorized applications" on GitHub's "Account Settings"

autoload/gist.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Author: Yasuhiro Matsumoto <[email protected]>
44
" Last Change: 10-Oct-2016.
55
" Version: 7.3
6-
" WebPage: http://github.com/mattn/gist-vim
6+
" WebPage: http://github.com/mattn/vim-gist
77
" License: BSD
88

99
let s:save_cpo = &cpoptions
@@ -764,7 +764,7 @@ function! gist#Gist(count, bang, line1, line2, ...) abort
764764
let listmx = '^\%(-l\|--list\)\s*\([^\s]\+\)\?$'
765765
let bufnamemx = '^' . s:bufprefix .'\(\zs[0-9a-f]\+\ze\|\zs[0-9a-f]\+\ze[/\\].*\)$'
766766
if strlen(g:github_user) == 0 && anonymous == 0
767-
echohl ErrorMsg | echomsg 'You have not configured a Github account. Read '':help gist-vim-setup''.' | echohl None
767+
echohl ErrorMsg | echomsg 'You have not configured a Github account. Read '':help gist-setup''.' | echohl None
768768
return
769769
endif
770770
if a:bang == '!'

doc/gist-vim.txt

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
*Gist.vim* Vimscript for creating gists (http://gist.github.com)
22

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|
1010

1111
This is a vimscript for creating gists (http://gist.github.com)
1212

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.
1414

1515
==============================================================================
16-
USAGE *:Gist* *gist-vim-usage*
16+
USAGE *:Gist* *vim-gist-usage*
1717

1818
- Post current buffer to gist, using default privacy option. >
1919
@@ -120,15 +120,15 @@ USAGE *:Gist* *gist-vim-usage*
120120
- While the gist list is visible, the following mappings apply:
121121

122122
- '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.
124124
- 'b' will open the selected gist file in a browser. If you are in
125125
GUI vim you can also achieve this by pressing 'Shift-Enter'.
126126
- '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.
128128
- '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
130130
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
132132
further action.
133133

134134
- Open the gist on browser after you post or update it.
@@ -141,7 +141,7 @@ USAGE *:Gist* *gist-vim-usage*
141141
:Gist!
142142
<
143143
==============================================================================
144-
TIPS *gist-vim-tips*
144+
TIPS *vim-gist-tips*
145145

146146
If you set "g:gist_clip_command", gist.vim will copy the gist code with option
147147
"-c".
@@ -216,13 +216,13 @@ in your local file, then call >
216216
217217
:Gist
218218
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
220220
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
222222
output exceeding the available horizontal space, assuring that every gist
223223
listed only takes one line on the table. Although the gist id field width is
224224
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:
226226

227227
let g:gist_namelength = 20
228228

@@ -241,7 +241,7 @@ All other values are treated as 1.
241241
This variable's value is 1 by default.
242242

243243
==============================================================================
244-
LICENSE *gist-vim-license*
244+
LICENSE *vim-gist-license*
245245

246246

247247
Copyright 2010 by Yasuhiro Matsumoto
@@ -267,15 +267,15 @@ LICENSE *gist-vim-license*
267267
OF THE POSSIBILITY OF SUCH DAMAGE.
268268

269269
==============================================================================
270-
INSTALL *gist-vim-install*
270+
INSTALL *vim-gist-install*
271271

272272
Copy following files into your plugin directory.
273273

274274
rtp:
275275
- autoload/gist.vim
276276
- plugin/gist.vim
277277

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`.
279279

280280
You need to install webapi-vim also:
281281

@@ -286,17 +286,17 @@ If you want to use latest one:
286286
https://github.com/mattn/webapi-vim
287287

288288
==============================================================================
289-
REQUIREMENTS *gist-vim-requirements*
289+
REQUIREMENTS *vim-gist-requirements*
290290

291291
- curl command (http://curl.haxx.se/)
292292
- webapi-vim (https://github.com/mattn/webapi-vim)
293293
- and, if you want to use your git profile, the git command-line client.
294294

295295
==============================================================================
296-
SETUP *gist-vim-setup*
296+
SETUP *vim-gist-setup*
297297

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.
300300

301301
First, you need to set your GitHub username in global git config:
302302
>
@@ -312,7 +312,7 @@ If you have two-factor authentication enabled on GitHub, you'll see the message
312312
"Must specify two-factor authentication OTP code." In this case, you need to
313313
create a "Personal Access Token" on GitHub's "Account Settings" page
314314
(https://github.com/settings/applications) and place it in a file
315-
named ~/.gist-vim like this:
315+
named ~/.vim-gist like this:
316316
>
317317
token xxxxx
318318
<
@@ -331,13 +331,13 @@ This is not secure at all, so strongly discouraged.
331331
NOTE: the username is optional if you only send anonymous gists.
332332

333333
==============================================================================
334-
FAQ *gist-vim-faq*
334+
FAQ *vim-gist-faq*
335335

336336
Q. :Gist returns a Forbidden error
337-
A. Try deleting ~/.gist-vim and authenticating again.
337+
A. Try deleting ~/.vim-gist and authenticating again.
338338

339339
==============================================================================
340-
THANKS *gist-vim-thanks*
340+
THANKS *vim-gist-thanks*
341341

342342
AD7six
343343
Bruno Bigras

0 commit comments

Comments
 (0)