Hi Ben!
On Fr, 22 Jun 2012, Ben Fritz wrote:
> I can confirm that this happens with the :new command, even if I use
> :setlocal instead of :set. However, the subject of this thread implies
> that setting the value changes existing buffers. It does not. Only new
> buffers do the wrong thing.
I think, the problem is, that when setting the local value, the global
value is also set:
,----[ set_num_option(...) ]-
| [...]
| else if (pp == &curbuf->b_p_iminsert)
| {
| if (curbuf->b_p_iminsert < 0 || curbuf->b_p_iminsert > B_IMODE_LAST)
| {
| curbuf->b_p_iminsert = B_IMODE_NONE;
| }
| p_iminsert = curbuf->b_p_iminsert;
| [...]
`----
But I am not sure, whether this is a bug or just a documentation issue.
regards,
Christian
--
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