Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open a gist from the list #224

Open
assadk88 opened this issue Feb 17, 2020 · 2 comments
Open

Cannot open a gist from the list #224

assadk88 opened this issue Feb 17, 2020 · 2 comments

Comments

@assadk88
Copy link

assadk88 commented Feb 17, 2020

I can't seem to open a gist after having selecting it from my list of gists.

To reproduce:

:Gist -l

Then select a gist with either o or <CR>, and you should receive the following error:

Error detected while processing ~/.config/nvim/plugged/vim-gist/autoload/gist.vim:
line  502:
E127: Cannot redefine function <SNR>107_GistGet: It is in use
line  533:
E127: Cannot redefine function <SNR>107_GistListAction: It is in use

How do I resolve this?

@mattn
Copy link
Owner

mattn commented Feb 18, 2020

Probably, in your plugins directory, there are gist-vim and vim-gist both.

@assadk88
Copy link
Author

I currently only have a .gist-vim file there, as this is what the plugin generated when it asked for a password and OTP. This returns the error I explained above.

Looking at the documentation: https://github.com/mattn/vim-gist/blob/master/doc/gist-vim.txt - it is stated that the file should be called .vim-gist. So I renamed the .gist-vim file to .vim-gist, and then attempted to retrieve Gists, but was asked to re-enter my username and password as before, and this created another .gist-vim file.

Any ideas about what to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants