On 12/03/11 08:27, wei gao wrote:
Hi,
It works. Thanks a lot:) And I and one autocmd to avoid setting this
everytime I reopen the file explorer window:
autocmd BufEnter \[File?List\] exec 'set winfixwidth'

I recommend :setlocal winfixwidth (rather than just plain :set), otherwise *all* new split-windows opened from then on would (IIUC) get wfw set to TRUE, because (except for purely global options)

        :setlocal
                sets only the local value
        :setglobal
                sets only the global default
        :set
                sets both


Also, if it's the only command in your autocommand, you don't need :exec; and setting it again every time you re-enter the buffer (even by Ctrl-W w or by mouse-clicking) is wasteful. I don't use the file explorer myself, but I think that something like

        :au BufWinEnter \[File\ List\] setlocal wfw

or similar, ought to be enough.


Best regards,
Tony.
--
"Reintegration complete," ZORAC advised.  "We're back in the universe
again ..."  An unusually long pause followed, "... but I don't know
which part.  We seem to have changed our position in space."  A
spherical display in the middle of the floor illuminated to show the
starfield surrounding the ship.

"Several large, artificial constructions are approaching us," ZORAC
announced after a short pause.  "The designs are not familiar, but they
are obviously the products of intelligence.  Implications: we have been
intercepted deliberately by a means unknown, for a purpose unknown, and
transferred to a place unknown by a form of intelligence unknown.
Apart from the unknowns, everything is obvious."
                -- James P. Hogan, "Giants Star"

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to