FG
💻 Software

Is there a way to "lock" the viewport in vim?

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

Problem

I recently started using Vim with NERDTree. The annoying thing is when I close the buffer, NERDTree expands to fill the rest of the screen, and I have to open another file and reopen NERDTree to get it back to the old layout. Is there a way to "lock" NERDTree in place? Ideally, closing a buffer wou…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there a way to "lock" the viewport in vim?

Low Risk

Take a look at http://github.com/carlhuda/janus, it's a customised version of vim that let's you keep nerdtree locked on the left. It also includes many other popular plugins like command-t, ctags and ack.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment