On Sat, 23 Jun 2012 02:40:12 +0800, Christian Brabandt <[email protected]> wrote:

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:

I think local variable should not have this behavior.


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



--
Regards,
Yue Wu

State Key laboratory of Natural Products and Functions
Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China

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

Raspunde prin e-mail lui