FG
💻 Software

Vim: How to synchronize NERDTree with current opened tab file path?

Fresh7 days ago
Mar 15, 202657231 views
Confidence Score1%
1%

Problem

When I open a new tab with different path from the previous file in VIM, NERDTree will still remains the same directory hierarchy of the previous file. Is there a sync shortcut to change the current root directory to the new opened file's directory?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Vim: How to synchronize NERDTree with current opened tab file path?

Low Risk

I use the following mapping to view the current buffer in NERDTree:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment