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

Follow XDG standards for the .gist-vim token file

Open evanpurkhiser opened this issue 12 years ago • 5 comments

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.

evanpurkhiser avatar Aug 05 '13 09:08 evanpurkhiser

I came here to open this issue and found this while I was searching. This would be a great addition.

alichtman avatar Nov 11 '19 01:11 alichtman

patche's will come.

mattn avatar Nov 11 '19 06:11 mattn

An alternative is reading the token from an environment variable.

alichtman avatar Mar 29 '20 07:03 alichtman

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.

darius4691 avatar May 01 '20 10:05 darius4691

Thanks for the fix! @darius4691

alichtman avatar May 02 '20 12:05 alichtman