E
E
ewtqs2020-06-01 18:11:03
vim
ewtqs, 2020-06-01 18:11:03

How to change where swap files are stored in vim?

how to change the place of swap files so that they appear not in the current directories but in the given directories?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2020-06-01
@ewtqs

set undodir=~/.cache/nvim/undo/

set backupdir=~/.cache/nvim/backup/

set directory=~/.cache/nvim/swp/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question