mattn/vim-gist

Post failed: Not Found

benwoodward opened this issue · 3 comments

Just uninstalled, and reinstalled. Deleted ~/.gist-vim.

I have 2fa.

When I run :Gist I am not prompted to authenticate. I just get the following error:

image

Using NVIM v0.4.2, MacOS Catalina 10.15.2.

I have set no gist vim g: variables.

mattn commented

I don't reproduce this.

What’s the best way for me to debug this error?

Resolved the problem.

This line of code uses the value of $GITHUB_TOKEN to authenticate if g:gist_token is not set. I have an existing env var by that name for hub. I just had to modify the token's scopes to include 'gists' in Github.