VIM recently edited file history

Is there a file history changed in VIM that is saved between vim, for example. last 20 open files. I tend to edit the same .conf files, and I have to go to them every time of course, they are distributed throughout the file system.

+7
vim history
source share
5 answers

As a standard, no, but there is a plugin here that adds this functionality. This one also mentions the recent history of files on the page, so it may provide an alternative.

+4
source share

You should consider giving ctrlp a chance (if you are not using it now). It provides a command:

:CtrlPMRUFiles 

allowing you to select previous open files. This, among other things, is cool stuff. I used the MRU plugin mentioned by @DrAI, but as soon as I started using ctrlp, I just use this one.

Another popular plugin that provides the mru feature is Unite .

+2
source share

As this answer indicates , you can use ctrl-o to go back to the file history. It will automatically open previously edited files.

+2
source share

Actually this behavior is built-in. With the default settings, you can use the command :oldfiles to view a numbered list of recent files. Then use :e #>4 , for example, to edit the number 4 in the list. Or :browse oldfiles , according to this answer .

+2
source share

You can use :marks to move between recently used files.

0
source share

All Articles