0

After following those answeres and those answers to the exact same question and setting

set nobackup
set noswapfile
set nowritebackup
set updatecount=0

my (g)vim still keeps creating local backup files on :w and doesn't delete them on exit. Setting backupskip="*" doesn't seem to have any effect either. How do I get rid of any kind of temporary file? No local tmp files, no tmp directory, no delete-on-exit-solution, just use the memory and memory only to edit files.

I know that my vimrc is not ignored, because all other setting (e.g. colorscheme, tabsize) are not ignored

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
Cubi73
  • 1,891
  • 3
  • 31
  • 52
  • Verify your options are not being overwritten elsewhere e.g. try `verbose set backup?` – builder-7000 Apr 07 '18 at 17:09
  • With some file opened in gvim I just ran `set [option]?` on all of those four options above and it always returned `no[option]` (or `updatecount=0`), so I think they are not overritten anywhere. – Cubi73 Apr 07 '18 at 17:12
  • I see, also make sure that the files being generated are backup files (`filename~`) and not undo files (`.filename~`). If you want to disable undo files do `set noundofile` – builder-7000 Apr 07 '18 at 17:35
  • Seems to be an undo file... Didn't know those even existed; Redirecting the undo directory solved the problem so far, but is there a way to transfer those into memory as well? – Cubi73 Apr 07 '18 at 17:39
  • Sorry I don't know what you mean by "how to transfer undo files into memory". – builder-7000 Apr 07 '18 at 18:11
  • 1
    Vim should keep its undo history in memory and discard it on exit. `set noundofile` seems to do the trick. – Cubi73 Apr 07 '18 at 18:13

0 Answers0