1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: MS-Windows: The edit with existing vim context menu entries can be
13 Solution: Let a registry entry disable them. (Jerome Vuarand)
14 Files: src/GvimExt/gvimext.cpp
17 *** ../vim-7.3.257/src/GvimExt/gvimext.cpp 2010-08-15 21:57:29.000000000 +0200
18 --- src/GvimExt/gvimext.cpp 2011-07-20 16:48:09.000000000 +0200
22 // Initialize m_cntOfHWnd to 0
24 ! // Retrieve all the vim instances
25 ! EnumWindows(EnumWindowsProc, (LPARAM)this);
31 // Initialize m_cntOfHWnd to 0
35 ! bool showExisting = true;
37 ! // Check whether "Edit with existing Vim" entries are disabled.
38 ! if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Vim\\Gvim", 0,
39 ! KEY_READ, &keyhandle) == ERROR_SUCCESS)
41 ! if (RegQueryValueEx(keyhandle, "DisableEditWithExisting", 0, NULL,
42 ! NULL, NULL) == ERROR_SUCCESS)
43 ! showExisting = false;
44 ! RegCloseKey(keyhandle);
47 ! // Retrieve all the vim instances, unless disabled.
49 ! EnumWindows(EnumWindowsProc, (LPARAM)this);
53 *** ../vim-7.3.257/src/version.c 2011-07-20 16:36:35.000000000 +0200
54 --- src/version.c 2011-07-20 16:54:34.000000000 +0200
58 { /* Add new patch number below this line */
64 What the word 'politics' means: 'Poli' in Latin meaning 'many' and 'tics'
65 meaning 'bloodsucking creatures'.
67 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
68 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
69 \\\ an exciting new programming language -- http://www.Zimbu.org ///
70 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///