I was wondering what's the purpose of .viminfo and .netrwhist files?

  • 5
    Do you know there is a doc in Vim? We even have a really good question to help you using it...
    – statox
    Dec 20, 2016 at 16:46
  • 6
    When in doubt: just try :h <any-word>. At least half the time you'll find what you're looking for. :-) Dec 20, 2016 at 17:19

1 Answer 1


You can see that here:

:h viminfo

If you exit Vim and later start it again, you would normally lose a lot of information. The viminfo file can be used to remember that information, which enables you to continue where you left off.

:h .netrwhist

The file ".netrwhist" holds history when netrw (and vim) is not active.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.