I have an install of Cygwin on a Windows 10 machine. I am trying to enable undo history in vim so that it is remembered between vim instances. At the moment everything is forgotten after closing the editor. My .exrc includes the following:
set undofile
set undodir=$HOME/.vim/undo
set undolevels=1000
set undoreload=10000
I did have a problem with .swp files not being opened correctly. Apparently the directory didn't exist and vim wasn't able to create one itself. However, $HOME/.vim/undo definitely exists:
drwx------+ 1 xxx Domänen-Benutzer 0 May 18 14:19 tmp
drwx------+ 1 xxx Domänen-Benutzer 0 May 18 14:20 undo
I have tried following this question and this one, including setting the following:
set nocompatible
I have also tried following this advice and set:
set undodir=$HOME/.vim/undo
However, it still does not work. Any other ideas what might be missing?