<html>
<head>
<title>gvim 7.2.49-p1 说明</title>
<h1 align=center>gvim 7.2.49-p1 说明</h1>
<hr>
</head>
<body>
<p><b>内容提要</b></p>
<ul>
<li><a href="#patch">更新说明</a>
<li><a href="#improve">改进</a>
<li><a href="#install">安装方法</a>
<li><a href="#important">注意事项</a>
<li><a href="#declare">声明</a>
<li><a href="#email">联系方式</a>
</ul>
<dl>
<a name=patch></a>
<dt><b>更新说明</b>
<dd>本次更新基于官方 7.2.49 制作。
<br><textarea rows=24 cols=80>
Patches for Vim - Vi IMproved 7.2
The files in this directory contain source code changes to fix
problems in released versions of Vim. Each file also contains an
explanation of the problem that is fixed, like the message that
was sent to the vim-dev maillist.
The best is to apply the patches in sequence. This avoids problems
when a patch depends on a previous patch. If you did not unpack the
extra archive, you may want to skip patches marked with "extra:".
Similarly for the "lang" archive. Or ignore errors for missing files.
Before patching, change to the top Vim directory, where the "src"
and "runtime" directories are located.
Depending on the version of "patch" that you use, you may have add
an argument to make it patch the right file:
patch -p < 7.2.001
patch -p0 < 7.2.001
After applying a patch, you need to compile Vim. There are no
patches for binaries.
Checksums for the patch files can be found in the file MD5.
Individual patches for Vim 7.2:
SIZE NAME FIXES
1877 7.2.001 Mac: pseudo-ttys don't work properly on Leopard
1462 7.2.002 leaking memory when displaying menus
3663 7.2.003 typo in translated message, message not translated
3413 7.2.004 Cscope help message is not translated
4638 7.2.005 a few problems when profiling
1552 7.2.006 HTML files are not recognized by contents
16735 7.2.007 (extra) minor issues for VMS
1947 7.2.008 wrong window count when using :bunload in a BufHidden autocmd
2245 7.2.009 can't compile with Perl 5.10 on MS-aindows
5415 7.2.010 "K" in Visual mode does not properly escape all characters
2873 7.2.011 error when inserting a float value from expression register
1444 7.2.012 compiler warnings when building with startup timing
4157 7.2.013 hang when waiting for X selection, consuming lots of CPU time
1769 7.2.014 synstack() doesn't work in an emptly line
1943 7.2.015 "make all test install" doesn't stop when the test fails
4536 7.2.016 cmdline completion pattern can be in freed memory
5319 7.2.017 X11: strlen() used wrongly, pasting very big selection fails
1390 7.2.018 memory leak when substitute is aborted
2269 7.2.019 completion and exists() don't work for ":noautocmd"
1521 7.2.020 "kvim" starts the GUI even though KDE is no longer supported
4806 7.2.021 getting full file name when executing autocmds may be slow
3823 7.2.022 (extra) cannot run tests with the MingW compiler
2062 7.2.023 'cursorcolumn' wrong in a closed fold when display is shifted
1452 7.2.024 'history' can be made negative, causes out-of-memory error
1470 7.2.025 a CursorHold event that invokes system() is retriggered
2969 7.2.026 (after 7.2.010) 'K' uses the rest of the line
3235 7.2.027 can use cscope commands in the sandbox, might not be safe
1466 7.2.028 confusing error message for missing ()
1291 7.2.029 no completion for ":doautoall" like for ":doautocmd"
1546 7.2.030 (after 7.2.027) can't compile, ex_oldfiles undefined
39400 7.2.031 file names from viminfo are not available to the user
1583 7.2.032 (after 7.2.031) can't compile with EXITFREE defined
2270 7.2.033 using "ucs-2le" for two-byte BOM, but text might be "utf-16le"
2372 7.2.034 memory leak in spell info when deleting a buffer
3522 7.2.035 mismatches for library and Vim alloc/free functions
7545 7.2.036 (extra) mismatches for library and Vim alloc/free functions
1576 7.2.037 double free with GTK 1 and compiled with EXITFREE
2438 7.2.038 overlapping arguments to memcpy()
1378 7.2.039 accessing freed memory on exit when EXITFREE is defined
1836 7.2.040 ":e ++ff=dos foo" gets "unix" 'ff' when CR before NL missing
22993 7.2.041 diff messed up when editing a diff buffer in another tab page
4987 7.2.042 restoring view in autocmd sometimes doesn't work completely
2550 7.2.043 VMS: Too many chars escaped in filename and shell commands
5639 7.2.044 crash because of gcc 4 being over protective for strcpy()
2056 7.2.045 the Python interface has an empty entry in sys.path
1704 7.2.046 wrong check for filling buffer with encoding
2470 7.2.047 using -nb while it is not supported makes other side hang
4758 7.2.048 v:count and v:prevcount are not set correctly
32552 7.2.049 (extra) Win32: the clipboard doesn't support UTF-16
</textarea></br>
<a name="improve"</a>
<dt><b>改进</b>
<dd>
<ul type=circle>
<li>工具栏打开文件和保存文件按钮失效。<llinzzi@gmail.com>这是一个很容易被忽略的BUG。原因在于当把windows的版本设为0x0500时,vc会默认兼容 NT 4.0,这是这个BUG的根本来源;
<li>编译选项设置不当,导致的ole版本gvim输入法光标不能跟随;
<li>一些网友反映的关于输入法的问题,实际上是不带ole的gvim版本固有的,大家可以使用带有ole版本的gvim,这样输入法窗口不能跟随光标、highlight cursorIM 不起作用、从编辑模式转到命令模式输入法不能自动关闭等等问题,就没有了。
<li>从 7.2.40 开始,修改了官方默认的vc Makefile,添加了vc 2008 express 优化选项,使编译连接后的可执行文件更小更快;
<li>把官方的关于更新的说明文件 README 一起放入到了压缩包里;
<li>从 7.2.42 开始不再提供不带 OLE 的 gvim;
<li>从 7.2.42-p2 开始,在Intel(R) C/C++编译器的30天试用期内,用Intel(R) C/C++ 编译器编译 gvim; </ul>
<a name="install"></a>
<dt><b>安装方法</b>
<dd>
<ul type=circle>
<li>如果你已经安装了gvim for win32,则将压缩包里的gvim.exe(支持OLE)和vim.exe(不含图形界面)复制到 gvim 的安装目录,覆盖相应的文件即可。
<li>如果没有安装gvim for win32 ,请去www.vim.org下载gvim for win32,然后安装;
<li>7.2.6 版本的补定是给scripts.vim打的,安装时要用压缩包里runtime/scripts.vim覆盖 $VIM/vim72 目录里的同名文件。
</ul>
<a name="important"></a>
<dt><b>注意事项</b>
<dd>
<ul type=circle>
<li>首先安装YaHei Consolas Hybrid字体;
<li>如果你在 gvim 的命令行上设置字体,enc设置必须是cp936。如果enc设置不是cp936,你将不能在gvim的命令行上使用set guifont和set guifontwide来设置名字中含有中文的字体,比如,enc为 utf-8,下面的命令是无效的:
<p align=center>:set guifont=新宋体:h10</p>
<br>gvim会提示找不到字体。但是enc的设置不会影响设置字体名字是英文的字体:
<p align=center>:set guifont=MingLiu:h10</p>
<br>这是可以正常工作的;
<li>如果你在_vimrc文件或_gvimrc文件中设置字体,则这两个文件必须是cp936编码的。如果不是,和第一种情况一样,不能设置名字中含有中文的字体;
<li>压缩包里有一个设置好的cp936编码的_vimrc 文件;
<li>去掉了对 windows NT 4.0 的支持;
<li>需要使用微软雅黑和 consolas 字体搭配的,请到网上寻找微软雅黑和 consolas 字体的混合字体 YaHei Consolas Hybrid 。压缩包里的 _vimrc 设置的是这个字体。
</ul>
<a name="declare"></a>
<dt><b>声明</b>
<dd>这些缺憾有待进一步的工作以消除,