vim-gist icon indicating copy to clipboard operation
vim-gist copied to clipboard

Cannot open a gist from the list

Open assadk88 opened this issue 5 years ago • 2 comments

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?

assadk88 avatar Feb 17 '20 18:02 assadk88

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

mattn avatar Feb 18 '20 04:02 mattn

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?

assadk88 avatar Feb 18 '20 17:02 assadk88