Wednesday, August 17, 2011

Re: command history ("q:") inherits foldcolumn from current window

On Aug 17, 11:06 am, "Christian Brabandt" <cbli...@256bit.org> wrote:
> On Wed, August 17, 2011 4:52 pm, Paul wrote:
> > According to the help, foldcolumn is local to window.  I can try
> > ":setg foldcolumn=0", but when I issue ":setg? foldcolumn", the result
> > depends is determined by whatever window I happen to be in.  So does
> > the foldcolumns showing in the command history.  After ":setg fdc=0",
> > try ":setg fdc?" from different windows, some with foldcolumns and
> > some without.  Also try calling up the command history from different
> > windows.  Do you get the same variable result?
>
> If I only enter :setlocal fdc=7 issuing :setg fdc? always returns 0
> which is what I would expect.
>
> Are you sure, you don't have in your .vimrc anywhere a set fdc=7
> command?

Yes. I'm sure.

However, I'm running into behaviour that is inconsistent with my
previous post. I issued ":setg fdc=0" in a window that has fdc=7.
The foldcolumns remains 7 (from looking at the window) byt querying
":setg fdc?" returns 0. Furthermore, calling up the command history
shows the temporary window with no fold columns.

I am quite sure that I reported things accurately in my previous post,
so I'm stumped. It might be a problem between the keyboard and the
chair, but I thought I was pretty careful about the tests that I
described....Let's call it an ID-10-T issue for now. I expect the
problem to rear its head again, but I hope to be wrong.

--
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

No comments: