Enabling vim undo history in Cygwin
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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?
vim cygwin
add a comment |Â
up vote
0
down vote
favorite
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?
vim cygwin
Edit a file (perhaps withvim --noplugin
),:set verbose=1
, and:w
. If it were working it would sayWriting undo file: filename
. What does yours say?
â B Layer
May 18 at 14:27
Nothing. Simply"test" 5L, 29C written
â Druckles
May 18 at 15:05
It's not even trying? When you do:set
everything there looks as expected (esp.undofile
andundodir
)? What happens when you try to write to the undodir directly, e.g.:exec 'w ' . &undodir . '/tmp.txt'
â B Layer
May 18 at 20:05
Nothing. It returns with no output and the file is not written. But then:echo 'something'
doesn't do anything either.
â Druckles
May 22 at 11:45
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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?
vim cygwin
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?
vim cygwin
asked May 18 at 12:38
Druckles
1916
1916
Edit a file (perhaps withvim --noplugin
),:set verbose=1
, and:w
. If it were working it would sayWriting undo file: filename
. What does yours say?
â B Layer
May 18 at 14:27
Nothing. Simply"test" 5L, 29C written
â Druckles
May 18 at 15:05
It's not even trying? When you do:set
everything there looks as expected (esp.undofile
andundodir
)? What happens when you try to write to the undodir directly, e.g.:exec 'w ' . &undodir . '/tmp.txt'
â B Layer
May 18 at 20:05
Nothing. It returns with no output and the file is not written. But then:echo 'something'
doesn't do anything either.
â Druckles
May 22 at 11:45
add a comment |Â
Edit a file (perhaps withvim --noplugin
),:set verbose=1
, and:w
. If it were working it would sayWriting undo file: filename
. What does yours say?
â B Layer
May 18 at 14:27
Nothing. Simply"test" 5L, 29C written
â Druckles
May 18 at 15:05
It's not even trying? When you do:set
everything there looks as expected (esp.undofile
andundodir
)? What happens when you try to write to the undodir directly, e.g.:exec 'w ' . &undodir . '/tmp.txt'
â B Layer
May 18 at 20:05
Nothing. It returns with no output and the file is not written. But then:echo 'something'
doesn't do anything either.
â Druckles
May 22 at 11:45
Edit a file (perhaps with
vim --noplugin
), :set verbose=1
, and :w
. If it were working it would say Writing undo file: filename
. What does yours say?â B Layer
May 18 at 14:27
Edit a file (perhaps with
vim --noplugin
), :set verbose=1
, and :w
. If it were working it would say Writing undo file: filename
. What does yours say?â B Layer
May 18 at 14:27
Nothing. Simply
"test" 5L, 29C written
â Druckles
May 18 at 15:05
Nothing. Simply
"test" 5L, 29C written
â Druckles
May 18 at 15:05
It's not even trying? When you do
:set
everything there looks as expected (esp. undofile
and undodir
)? What happens when you try to write to the undodir directly, e.g. :exec 'w ' . &undodir . '/tmp.txt'
â B Layer
May 18 at 20:05
It's not even trying? When you do
:set
everything there looks as expected (esp. undofile
and undodir
)? What happens when you try to write to the undodir directly, e.g. :exec 'w ' . &undodir . '/tmp.txt'
â B Layer
May 18 at 20:05
Nothing. It returns with no output and the file is not written. But then
:echo 'something'
doesn't do anything either.â Druckles
May 22 at 11:45
Nothing. It returns with no output and the file is not written. But then
:echo 'something'
doesn't do anything either.â Druckles
May 22 at 11:45
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444586%2fenabling-vim-undo-history-in-cygwin%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Edit a file (perhaps with
vim --noplugin
),:set verbose=1
, and:w
. If it were working it would sayWriting undo file: filename
. What does yours say?â B Layer
May 18 at 14:27
Nothing. Simply
"test" 5L, 29C written
â Druckles
May 18 at 15:05
It's not even trying? When you do
:set
everything there looks as expected (esp.undofile
andundodir
)? What happens when you try to write to the undodir directly, e.g.:exec 'w ' . &undodir . '/tmp.txt'
â B Layer
May 18 at 20:05
Nothing. It returns with no output and the file is not written. But then
:echo 'something'
doesn't do anything either.â Druckles
May 22 at 11:45