Skip to content

Commit 40e0dd1

Browse files
mattnvim-scripts
authored andcommitted
Version 6.8
This is an upgrade for Gist.vim: changed authentication. removed password authentication. if you want to keep using password authentication, let gist_use_password_in_gitconfig to 1.
1 parent 8d329a1 commit 40e0dd1

File tree

3 files changed

+164
-123
lines changed

3 files changed

+164
-123
lines changed

README.mkd

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -190,31 +190,14 @@ If you want to uninstall gist.vim, remember to also remove `~/.gist-vim`.
190190

191191
## Setup:
192192

193-
This plugin uses github API v3. Setting value is stored in `~/.gist.vim`.
193+
This plugin uses github API v3. Setting value is stored in `~/.gist-vim`.
194194
gist-vim have two ways to access APIs.
195195

196-
### Basic Auth
196+
First, you need to set your Github username in global git config:
197197

198-
Require github user ID and password. This is easy but not secure.
198+
$ git config --global github.user Username
199199

200-
### OAuth2
201-
202-
1. Register your application.
203-
204-
Note that you must set `Callback URL` as same as following.
205-
206-
https://github.com/settings/applications/new
207-
208-
fill like following
209-
210-
![](http://mattn.github.com/gist-vim/static/image/setting1.png)
211-
212-
2. Start `:Gist -l`
213-
214-
You'll see some prompts. fill ClientID/CilentSecret. Then you can see browser show up.
215-
216-
![](http://mattn.github.com/gist-vim/static/image/setting2.png)
217-
218-
This is a PIN code.
219-
220-
Copy this value and paste to prompt `PIN:`.
200+
Then, gist.vim will ask for your password to create an authorization when you
201+
first use it. The password is not stored and only the OAuth access token will
202+
be kept for later use. You can revoke the token at any time from the list of
203+
["Authorized applications" on Github's "Account Settings" page](https://github.com/settings/applications).

0 commit comments

Comments
 (0)