Is there an option to control .cache folder location in Vim? Is there a setting or a variable for this?

New contributor
user1602 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Are you using Vim or Neovim? – Martin Tournoij Nov 8 at 5:18
  • 1
    For what is Vim using that location; I'm not aware that it's used?! In general, the XDG_CACHE_HOME environment variable controls this. – Ingo Karkat Nov 8 at 7:40
  • I am using Vim. – user1602 Nov 8 at 8:19
  • 1
    You can try :let $XDG_CACHE_HOME = '...' in your ~/.vimrc. I'm still curious what kind of files Vim is placing there (and which you want moved elsewhere)? – Ingo Karkat Nov 8 at 12:14
  • 1
    @IngoKarkat my money’s on a plugin or janus-like setup – D. Ben Knoble Nov 8 at 12:51

Your Answer

user1602 is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.