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/vim– Peter Rincker Aug 28 '18 at 14:26vim -u NONEand no~/.cache/vimcreated. How to track what plugin causes it? @PeterRincker – Tuyen Pham Aug 29 '18 at 01:15.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 – statox Aug 29 '18 at 08:30.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. – Peter Rincker Aug 29 '18 at 15:26: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. – Tuyen Pham Aug 30 '18 at 02:28