FG
💻 Software

Keep cursor in Netrw window when browsing files in VIM

Fresh5 days ago
Mar 15, 20264444 views
Confidence Score0%
0%

Problem

I have a vertical split in VIM. On one side I open netrw (:E) to browse through some files/folders. Although as soon as I press 'Return' to enter a folder, folder opens and cursor is moved into other window. How can I keep the cursor in the netrw window?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Keep cursor in Netrw window when browsing files in VIM

Low Risk

Put this in your .vimrc, to configure vertical preview splits, then when the cursor is over the desired file, type to open a preview window. To close the window, type . The term used in vim for a window that's opened without the cursor moving to it …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment