On Sunday, June 24, 2012 7:06:39 AM UTC-5, Tony Mechelynck wrote: > On 24/06/12 13:41, Christian Brabandt wrote: > > Hi Tony! > > > > On So, 24 Jun 2012, Tony Mechelynck wrote: > > > >> :setlocal option=value > >> :setlocal boolopt > >> :setlocal noboolopt > >> sets only the local value > > > > Except, that for iminsert this also sets the global option. > > > > regards, > > Christian > > > Ben Fritz said the behaviour is correct for already existing buffers. I > think what happened here is what I mentioned lower down in the part you > snipped. > >
Nope, the option is not getting copied from the buffer on creating a new buffer. It is getting set from the global option as documented. However, the global option is being incorrectly set when using :setlocal. gvim -N -i NONE -u NONE :set iminsert? 2 :new :setlocal iminsert=1 :set iminsert? 1 :wincmd w :set iminsert? 2 :new :set iminsert? 1 -- 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
