Am 11.01.2012 02:56, schrieb Gary Johnson:
I started vim as

     vim -N -u NONE a

and executed

     :set tw?

I saw the result "textwidth=0" as expected.  Then I did the
following:

     :set tw=50
     :split b
     :set tw?
       textwidth=50

Again, as expected.

     :set tw=60
     :wincmd w
     :set tw?
       textwidth=50
     :split c
     :set tw?
       textwidth=60

I would have expected the 'textwidth' of buffer c to be 50, since
buffer a was the active buffer/window when ":split c" was executed.

Regards,
Gary

What matters for new buffers is the last change of the option's global
value.  In this case:  :set tw=60  in buffer b.

--
Andy

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