1

I've found that neovim-qt is storing my .swp files in AppData/Local/nvim-data/swap and I was wondering if it's possible to change this to get the standard vim behaviour of creating them locally.

2
  • 2
    You can usually set the directory option to control this... does it work for nvim?
    – D. Ben Knoble
    Commented Apr 13, 2020 at 3:14
  • @D.BenKnoble I was unaware of this option, thanks!
    – Mason
    Commented Apr 13, 2020 at 4:04

1 Answer 1

3

One of the goals of Neovim is to provide defaults that work for the majority of its users, and to avoid users disabling swap files, they changed their default location. You can go back to the Vim default with set directory=.

BTW you may want to consult :help nvim-defaults which lists all default changes that Neovim introduced

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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