Suppose the following scenario:
- open up neovim in the directory X;
- change some file A, save and quit neovim;
- git commit the modified file (which uses nvim as the editor for the commit message)
Now suppose I want to reopen file A (which I dont remember its filename) and I want to continue editing that file.
What I have been doing so far is the following:
- open up neovim
- press <ctrl+o> (However, <ctrl+o> opens up a buffer with the commit message that I last entered when commit that file)
- press <ctrl+o> one more time, so I end up finally editing file A.
Is there a more efficient way to accomplish that? When pressing <ctrl+o> (or something like that), I don’t want to see the buffer
that I used for my git commit message. I just want to reopen my last edited file. Also, I would like to avoid dashboard things like vim-startify
or alike. I tried to use folke’s persistence.nvim, but I didn’t work (maybe because I’m not using plugins like startify or dashboard).