vim-gist
vim-gist copied to clipboard
Follow XDG standards for the .gist-vim token file
I noticed that when the github authentication token is saved it is just dropped into the users home directory.
It would be great if instead this file could be stored in the $XDG_CACHE_HOME directory.
See the XDG Directory Specifications.
I came here to open this issue and found this while I was searching. This would be a great addition.
patche's will come.
An alternative is reading the token from an environment variable.
Just configure g:gist_token_file, for example ( in XDG_CONFIG_HOME)
let g:gist_token_file = stdpath('config') . '/gist-vim'
and it worked for me.
Thanks for the fix! @darius4691