Ensure you're saving the file to disk on BufLeave. Or try *:w* before you switch buffers.
*Igbanam* On Sat, Aug 24, 2024 at 2:22 PM Riza Dindir <[email protected]> wrote: > Hello > > When I switch from one buffer to the other, the buffer that I have > switched to is changed so that a previous edit is being replayed. To > explain a bit more. > > I have a file a.txt and edited that file (changing first 2 characters > characters in line 2 to uppercase) > > file: a.txt > > line 1 > LIne 2 > > I switch to some other buffer (or close the editor and open it again) , do > some editing and come back to buffer a.txt. When I do that the first 2 > characters on line 2 are lowercase. > > This has been bothering me for a while now. Has anybody seen this kind of > behavior before? Does this have something to do with the .viminfo file > maybe. > > Regards > > -- > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vim_use/f9e5e0fb-a9d0-43d3-994f-a445fc28904cn%40googlegroups.com > <https://groups.google.com/d/msgid/vim_use/f9e5e0fb-a9d0-43d3-994f-a445fc28904cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOmRJrdNiUOzMrWAWv16OL9NxZxWdm7be4b4bLaEg9BPf5M0-g%40mail.gmail.com.
