On Tuesday, February 5, 2013 1:35:25 PM UTC-6, Christian Brabandt wrote: > Hi Ben! > > > > On Di, 05 Feb 2013, Ben Fritz wrote: > > > > > > > > You could have one window on a buffer with colorcolumn set to 5, and > > > another window with colorcolumn set to follow textwidth. Just because > > > each buffer may have a different textwidth doesn't mean colorcolumn > > > needs to follow the buffer as well. I think colorcolumn should follow > > > textwidth when it changes, no matter the reason it changes. > > > > Then it would be buffer-local, woudln't it? >
No. Consider: :e somefile.txt :setl colorcolumn=5 :sp :setl colorcolumn=10 :sp :setl colorcolumn=-2 I would expect the first window to have a constant highlight at the 5th column, the second to have a constant highlight at the 10th column, and the third to have a highlight two columns left of whatever the current value of 'textwidth' is. If I change textwidth, I would expect the highlight on the first two windows to remain unchanged but the third window should have the highlight adjusted accordingly. Currently this is exactly what I see. If 'colorcolumn' is made buffer-local instead of window-local, all three windows would now depend on textwidth. -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
