💻 Software
How do I open the directory of the current open file?
Fresh6 days ago
Mar 15, 202675903 viewsConfidence Score1%
1%
Problem
If I open a file with how can I easily open the directory in vim's filebrowser?
Error Output
vim dir/to/my/file.c
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I open the directory of the current open file?
Low Risk
Try . From : :Explore will open the local-directory browser on the current file's directory (or on directory [dir] if specified). The window will be split only if the file has been modified, otherwise the browsing window will take over that window. Normally the splitting is taken horizontally.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix