On Wed, 20 Jun 2012 17:55:16 +0800, Bram Moolenaar <
Br...@moolenaar.net>
wrote:
>
> Yue Wu wrote:
>
>> As the title, :setlocal iminsert=1 in a buffer will make the value of it
>> in all other buffers to be 1 too.
>>
>> From the help of 'iminsert', it should be a buffer variable. So I
>> think
>> it's a bug.
>>
>> Please confirm it, thank you.
>
> I don't see this. Please check if you have any scripts that matter. If
> the problem persists give us the sequence of commands that shows the
> problem, starting with "vim -u NONE".
>
I'm runing gvim on windows xp sp3. To reproduce:
gvim.exe -u NONE
:set nocp
:set iminsert?
> It should produce 0.
:set iminsert=1
:new
> To start a new buffer
:set iminsert?
it will show iminsert is 1, it should be 0.
:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 27 2010 17:56:10)
MS-Windows 32-bit GUI version
Included patches: 1-46
Compiled by Bram@KIBAALE
Big version with GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +conceal +cryptv
+cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs -dnd
-ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path +float +folding
-footer +gettext/dyn -hangul_input +iconv/dyn +insert_expand +jumplist
+keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap -lua
+menu +mksession
+modify_fname +mouse +mouseshape +multi_byte +multi_lang -mzscheme
+netbeans_intg -ole -osfiletype +path_extra -perl +persistent_undo
-postscript +printer -profile -python
-python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax
+tag_binary +tag_old_static
-tag_any_white -tcl -tgetent -termresponse +textobjects +title +toolbar
+user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore
+wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$VIM\_gvimrc"
system menu file: "$VIMRUNTIME\menu.vim"
Compilation: cl -c /W3 /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32
-DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DWINVER=0x0400
-D_WIN32_WINNT=0x0400 /Fo.\ObjG/ /Ox /GL -DNDEBUG /Zl /MT -DFEAT_GUI_W32
-DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_BIG /Fd.\ObjG/ /Zi
Linking: link /RELEASE /nologo /subsystem:windows /LTCG:STATUS
oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib comdlg32.lib
ole32.lib uuid.lib /machine:i386 /nodefaultlib gdi32.lib version.lib
winspool.lib comctl32.lib advapi32.lib shell32.lib /machine:i386
/nodefaultlib libcmt.lib user32.lib WSock32.lib /PDB:gvim.pdb
-debu