On Wed, August 17, 2011 4:22 pm, Paul wrote: > On Aug 17, 10:17 am, Paul <[email protected]> wrote: >> The foldcolumn option is listed as local to window. Whenever I recall >> the command history ("q:"), the foldcolumn is set to the same as the >> window in which the cursor resided when issuing "q:". Is there a way >> to prevent this? I am using Vim 7.3 in Windows 7 Enterprise 32-bit. > > For that matter, any new buffer/window created with <Ctrl-W Ctrl-N> or > ":new" also inherits the foldcolumn option...it'd be nice to avoid > that as well. Not sure if it can be done with autocmd (which I'm > newly read-up on). Currently, my .vimrc has: > > autocmd BufNewFile,BufRead *.vb setl ft=vb | syntax enable | color > mine > autocmd BufNewFile,BufRead *.vb setl fen foldmethod=indent > foldcolumn=7 number
I can't reproduce this. Only if I used set fdc=7 the new window opened by q: will contain the global value of the foldcolumn, but when only setting the foldcolumn locally (using :setl) opening the commandline window using q: does not contain the foldcolumn. regards, Christian -- 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
