I got a strange behavior of vim 8.1 1-279 / archlinux 4.17.14
This is vim under console but I believe there's no different.
Vim force create ~/.cache/vim/{backup,swap,undo} folders even I set noundofile nobackup noswapfile in .vimrc
Is there something that I missed?
:h 'backupdir': "The directory must exist, Vim will not create it for you." By chance do you have something set in yourvimrcor a plugin creating these for you? The default for'backupdir'is.,~/tmp,~/so I think it is unlikely Vim would create a path of~/.cache/vimvim -u NONEand no~/.cache/vimcreated. How to track what plugin causes it? @PeterRincker.vimrcand your question becomes "How to track what plugin causes it?" I'm closing your question as a duplicate since it is exactly what this answer is about.cache/vim. e.g.rg -F '.cache/vim(uses ripgrep). You can also use:verboseand:setto find out more information about an option setting, e.g.:verbose set backupdir?. Some more generic debugging advice.:verbose set backupdir?:backupdir=~/.vim/cache/backup,~/.vim/cache,/var/tmp/vim,/var/tmps Last set from ~/.vimrc. So last set is from~/.vimrc, it doesn't find any from other sources.