Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7688097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:50:40+00:00 2026-05-31T19:50:40+00:00

When I edit files in my ~/.vim , the .netrwhist file would mysteriously be

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:50:41+00:00Added an answer on May 31, 2026 at 7:50 pm

    netrw is a kind of vim plugin/script which supports reading and writing files across networks. .netrwhist is a history file which maintains all the directories that were modified. So whenever you modify the contents of ~/.vim it adds one entry in .netrwhist

    A sample .netrwhist is as shown

    let g:netrw_dirhistmax  =10
    let g:netrw_dirhist_cnt =6
    let g:netrw_dirhist_1='/Users/wolever/EnSi/repos/web/env/web/lib/python2.6/site-packages/django'
    let g:netrw_dirhist_2='/private/tmp/b/.hg/attic'
    let g:netrw_dirhist_3='/Users/wolever/code/sandbox/pydhcplib-0.6.2/pydhcplib'
    let g:netrw_dirhist_4='/Users/wolever/EnSi/repos/common/env/common/bin'
    let g:netrw_dirhist_5='/Users/wolever/EnSi/repos/common/explode'
    let g:netrw_dirhist_6='/Users/wolever/Sites/massuni-wiki/conf'
    

    netrw_dirhistmax indicates the maximum number of modified directories it stores in the history file. ie Max History Size. netrw_dirhist_cnt indicates the current history count of modified directories.

    If you want to disable netrw to generate history file, then see this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using Vim to edit PHP files and would like to implement code
I usually edit RUBY files in VIM. I want the methods(def...end) to fold. Could
I want to edit .vimrc file from Vim and apply them without restarting Vim.
Whenever I edit files on emacs, it seems a temporary file is created with
I would like to know how I could edit mp3 files on the server
I'm using vim to edit files that use a programming language where the end
I am using Vim to edit a Java file, but I find the way
I use vi quite often to edit files. Usually I need the file to
What does a horizontal line in vim mean? While editing a remote file I
When I'm using Vim 7.3 to edit a large PHP file (2000 lines), if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.