Tuesday, November 5, 2024

Annoying vim problem - again

As you might recall I had a problem with VIM. I also have written to the group with the title "Annoying vim problem".

When I switch a buffer or when I run vim and open a file that I edited before it was undoing what I did the last time to the file.

I was suspecting it had something to do with the .viminfo file or something like that. So I have started vim using "vim -V10". I am showing some of the :messages command below.

sourcing "/home/.../tmp/cmd.vi"
chdir(./.../...)
fchdir() to previous dir
chdir(/home/.../.../.../.../.../.../.../...)
fchdir() to previous dir
"./../../some.py" 109L, 5253B
Reading viminfo file "/home/rdindir/.viminfo" marks
Reading undo file: /tmp/%home%...%...%...%...%...%...%...%...%some.py

I have replaced path components with "..." in the paths above, which I did not share. 

The interesting part is this. It reads the .viminfo file and then read the undo file in the /tmp directory. This causes the last things that I have made in the file to be undone, after I open that file again.

Can anybody tell me why this might happen? Any ideas?

Regards
Riza

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CA%2Bek4BESfkdgr2XU8HTE8%2B9Q2YcviOg-2sgZeZ1shB%2B0LBa8Tg%40mail.gmail.com.

No comments:

Post a Comment