1

I'm trying to make a protable Neovim so I can use my plug&play IDE from a USB thumbdrive on any offline Windows computer.

I managed to store my plugins and my sysinit.vim onto the USB drive and make Neovim use them.

But while testing I realized that Neovim creates some folders on the host computer.

~\AppData\Local\nvim-data\shada and ~\AppData\Local\nvim-data\swap

Are there more?

In the manual I found that I can change where swap files are stored by setting directory which currently is ~\AppData\Local\nvim-data\swap\\

What about the ShaDa directory?

Is there any way to change stdpath('data')?

I guess there is no way to prevent nvim-qt to create registry entries? (beside making my own build)

0

Are there more?

Swap, undo, shada, log... Whatever is found there.

I can change where swap files are stored

IMO, just set noswapfile and forget it.

What about the shada directory?

Read :h shada-n Get used to this: when you need something it's in the help.

I guess there is no way to prevent

Everything is possible. But, at the very least, shada/viminfo is too useful to switch it off.

Is there any way to change stdpath('data')?

From :h standard-path

The $XDG_CONFIG_HOME and $XDG_DATA_HOME environment variables are used if they exist, otherwise default values (listed below) are used

| improve this answer | |
  • Thanks. Yeah the help is really great but I have a few problems to find what I need some times or if I find it it is hard to make sense of it, yet. I read the shada section befor and I didn't realize that changing the shada filename would also change where it is stored. I don't want to turn it off, I just don't want my NVIM to leave files other than those I edit on the computer. – Piglet May 19 at 15:59
  • 2
    To help with the first problem (not finding what you are looking for) I recommend reading chapter 2.8 (:h 02.8) including the summary afterwards (:h help-summary). And don't forget about :helpgrep. (If you are already familiar with these things then carry on.) – B Layer May 19 at 19:22

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.