mattn / vim-gist

Vim plugin for Gist
http://www.vim.org/scripts/script.php?script_id=2423
1.69k stars 131 forks source link

Even with github account configured I cannot get past warning msg. #198

Closed CodisRedding closed 9 years ago

CodisRedding commented 9 years ago

My ~/.gitconfig https://gist.github.com/fourq/7c4b9e58ca2fe43b8515

the warning msg that I keep getting: https://github.com/mattn/gist-vim/blob/ea7dc962c5c2ac2a1c4adc94d54cac190d713648/autoload/gist.vim#L719

Is there something wrong in my .gitconfig?

mattn commented 9 years ago

what is output of git config --get github.user?

CodisRedding commented 9 years ago

I get my github username fourq.

Rocky Assad r@cky.email @fourq

On Oct 25, 2015, at 7:17 AM, mattn notifications@github.com wrote:

what is output of git config --get github.user?

— Reply to this email directly or view it on GitHub.

mattn commented 9 years ago

Do you install git?

CodisRedding commented 9 years ago

yeah, it's installed. Couldn't live without it =)

mattn commented 9 years ago

do you set gist_post_anonymous ?

:echo gist_post_anonymous

at least, if git is installed and gist_post_anonymous is not set, the message shouldn't be displayed. I guess.

CodisRedding commented 9 years ago

I don't. Here's my gist settings that I've had for a while. https://github.com/fourq/vim-settings/blob/master/.vimrc#L44

mattn commented 9 years ago

https://github.com/mattn/gist-vim/blob/ea7dc962c5c2ac2a1c4adc94d54cac190d713648/autoload/gist.vim#L39-L42

what you get with :echo substitute(system('git config --get github.user'), "\n", '', '') ?

CodisRedding commented 9 years ago

fourq

mattn commented 9 years ago

Then g:github_user should be set.

CodisRedding commented 9 years ago

So I commented out the gist settings that I posted earlier and ran :Gist again and got this: http://pi.cky.website/image/0s0F1X3a0z1N

CodisRedding commented 9 years ago

seems to be working now for some reason. https://gist.github.com/16fa7fc9d528c4e98b26 (private)

mattn commented 9 years ago

did you solve the issue? closable?

CodisRedding commented 9 years ago

I suppose so. So just to recap. I commented out my .vimrc settings, opened vim, ran :Gist, it then prompt me for my GH creds. I uncommented the .vimrc settings and all is still working. /shrugs. thanks

pinggit commented 8 years ago

I got the same issue... :Gist You have not configured a Github account. Read ':help gist-vim-setup'.

ping@ubuntu47-3:~$ git config --global --list user.email=songpingemail@gmail.com user.name=ping credential.helper=cache --timeout=3600 ping@ubuntu47-3:~$ ping@ubuntu47-3:~$ ping@ubuntu47-3:~$ git config user.name ping ping@ubuntu47-3:~$ git config --get github.user ping@ubuntu47-3:~$

mattn commented 8 years ago

As you mentioned as, you need github.user