How to keep NERDTree from resizing project window in (g)vim?
I've been forcing myself to use gvim for Windows for much of my text editing needs. I'm gradually growing more comfortable with it, but one problem has been annoying me greatly.
I use the project plugin to keep a window up on the left side of my gVim screen, listing my projects. It's handy and keeps me from going into IDE withdraw. Here's an idea of what it looks like:
I then invoke NERDTree on the right side with <Leader>][:
I then navigate through NERDTree to find whatever I was looking for, and dismiss NERDTree with <Leader>][. This makes the NERDTree window go away, but rather than put the main window back to the size it was, it grows the project window instead:
Right now I manually resize the project window, but that really interrupts the flow I'm trying to achieve with vim.
I'm using gvim 7.2, NERDTree 3.1.1, and project 1.4.1. Anyone have any ideas how to fix this?
UPDATE : Based on Steve K's answer I've figured out the solution. When you run the :Project
command and it creates the project window, the project window is the active one. So I just added set winfixwidth
to my .vimrc
after :Project
, and that solved the problem. Now I can show and hide NERDtree to my heart's content with no annoying window resizing.
With the cursor inside the left most project window, do
:set winfixwidth
I think that will do it for you.
链接地址: http://www.djcxy.com/p/43108.html上一篇: 对于gwt的openid消费者