Open recent files in vim

Asked

Viewed 46 times

2

What is the most efficient way to open a file ever opened before in vim?

I have using the following feature

:browse oldfiles

But you need to go to the bottom of the page to enter the document number to open. There’s a way to make this process simpler?

1 answer

3


I use this command a lot. You don’t have to go to the bottom of the page to enter the document number. If you press "q", the vim will allow you to enter the document number. It will immediately display this text:

Type number and <enter> (empty cancels)

If vim is set to Portuguese, it will display this text:

Digite um número e <Enter> (deixe em branco para cancelar):
  • 2

    it is no easy feat to write a Perfectly translatable text, and you Did it! Also, learned a new vim Trick with you, Thanks!

  • 1

    Thanks :) I’m glad I can help.

  • As I never noticed it before!! Thank you so much for the excellent tip.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.