vim-gist
vim-gist copied to clipboard
Cannot open a gist from the list
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?
Probably, in your plugins directory, there are gist-vim and vim-gist both.
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?