Is there a way to "lock" the viewport in vim?
        Posted  
        
            by breadjesus
        on Super User
        
        See other posts from Super User
        
            or by breadjesus
        
        
        
        Published on 2010-05-20T03:49:20Z
        Indexed on 
            2010/05/20
            3:50 UTC
        
        
        Read the original article
        Hit count: 211
        
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 would replace it with another buffer that's hidden, or open a new blank buffer if no other buffers are open.
Thanks!
© Super User or respective owner