When I edit files in my ~/.vim, the .netrwhist file would mysteriously be changed, too.
It’s content:
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =6
...and so on...
What does this file do? Is it important?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
netrw is a kind of vim plugin/script which supports reading and writing files across networks.
.netrwhistis a history file which maintains all the directories that were modified. So whenever you modify the contents of~/.vimit adds one entry in.netrwhistA sample
.netrwhistis as shownnetrw_dirhistmaxindicates the maximum number of modified directories it stores in the history file. ie Max History Size.netrw_dirhist_cntindicates the current history count of modified directories.If you want to disable netrw to generate history file, then see this.