代码拉取完成,页面将自动刷新
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>version4 - Vim Documentation</title>
<meta name="Generator" content="Vim/8.0">
<meta name="plugin-version" content="vim8.0">
<meta name="syntax" content="help">
<meta name="settings" content="no_pre,use_css,expand_tabs">
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="jquery.min.js" type="text/javascript"></script>
<script src="mark-current-page.js" type="text/javascript"></script>
</head>
<body>
<header>
<div class="header">
<a href="http://vim-jp.org/">vim-jp</a>
/ <a href="http://vim-jp.org/vimdoc-en/">vimdoc-en</a>
/ version4<br />
<a name="top"></a><h1>version4 - Vim Documentation</h1>
<a href="index.html">Return to main</a>
<span class="EnglishJapaneseLink">
<span class="CurrentLanguage">English</span>
</span>
</div>
</header>
<nav>
<dl>
<dt>BASIC</dt>
<dd><ul>
<li><a href="quickref.html">quickref</a></li>
<li><a href="sponsor.html">sponsor</a></li>
</ul></dd>
<dt>USER MANUAL</dt>
<dd><ul>
<li><a href="usr_toc.html">usr_toc</a></li>
</ul></dd>
<dt>Getting Started</dt>
<dd><ul>
<li><a href="usr_01.html">usr_01</a></li>
<li><a href="usr_02.html">usr_02</a></li>
<li><a href="usr_03.html">usr_03</a></li>
<li><a href="usr_04.html">usr_04</a></li>
<li><a href="usr_05.html">usr_05</a></li>
<li><a href="usr_06.html">usr_06</a></li>
<li><a href="usr_07.html">usr_07</a></li>
<li><a href="usr_08.html">usr_08</a></li>
<li><a href="usr_09.html">usr_09</a></li>
<li><a href="usr_10.html">usr_10</a></li>
<li><a href="usr_11.html">usr_11</a></li>
<li><a href="usr_12.html">usr_12</a></li>
</ul></dd>
<dt>Editing Effectively</dt>
<dd><ul>
<li><a href="usr_20.html">usr_20</a></li>
<li><a href="usr_21.html">usr_21</a></li>
<li><a href="usr_22.html">usr_22</a></li>
<li><a href="usr_23.html">usr_23</a></li>
<li><a href="usr_24.html">usr_24</a></li>
<li><a href="usr_25.html">usr_25</a></li>
<li><a href="usr_26.html">usr_26</a></li>
<li><a href="usr_27.html">usr_27</a></li>
<li><a href="usr_28.html">usr_28</a></li>
<li><a href="usr_29.html">usr_29</a></li>
<li><a href="usr_30.html">usr_30</a></li>
<li><a href="usr_31.html">usr_31</a></li>
<li><a href="usr_32.html">usr_32</a></li>
</ul></dd>
<dt>Tuning Vim</dt>
<dd><ul>
<li><a href="usr_40.html">usr_40</a></li>
<li><a href="usr_41.html">usr_41</a></li>
<li><a href="usr_42.html">usr_42</a></li>
<li><a href="usr_43.html">usr_43</a></li>
<li><a href="usr_44.html">usr_44</a></li>
<li><a href="usr_45.html">usr_45</a></li>
</ul></dd>
<dt>Making Vim Run</dt>
<dd><ul>
<li><a href="usr_90.html">usr_90</a></li>
</ul></dd>
<dt>General subjects</dt>
<dd><ul>
<li><a href="intro.html">intro</a></li>
<li><a href="index.html">help</a></li>
<li><a href="helphelp.html">helphelp</a></li>
<li><a href="vimindex.html">index</a></li>
<li><a href="tags.html">tags</a></li>
<li><a href="howto.html">howto</a></li>
<li><a href="tips.html">tips</a></li>
<li><a href="message.html">message</a></li>
<li><a href="quotes.html">quotes</a></li>
<li><a href="todo.html">todo</a></li>
<li><a href="debug.html">debug</a></li>
<li><a href="develop.html">develop</a></li>
<li><a href="uganda.html">uganda</a></li>
</ul></dd>
<dt>Basic editing</dt>
<dd><ul>
<li><a href="starting.html">starting</a></li>
<li><a href="editing.html">editing</a></li>
<li><a href="motion.html">motion</a></li>
<li><a href="scroll.html">scroll</a></li>
<li><a href="insert.html">insert</a></li>
<li><a href="change.html">change</a></li>
<li><a href="indent.html">indent</a></li>
<li><a href="undo.html">undo</a></li>
<li><a href="repeat.html">repeat</a></li>
<li><a href="visual.html">visual</a></li>
<li><a href="various.html">various</a></li>
<li><a href="recover.html">recover</a></li>
</ul></dd>
<dt>Advanced editing</dt>
<dd><ul>
<li><a href="cmdline.html">cmdline</a></li>
<li><a href="options.html">options</a></li>
<li><a href="pattern.html">pattern</a></li>
<li><a href="map.html">map</a></li>
<li><a href="tagsrch.html">tagsrch</a></li>
<li><a href="quickfix.html">quickfix</a></li>
<li><a href="windows.html">windows</a></li>
<li><a href="tabpage.html">tabpage</a></li>
<li><a href="syntax.html">syntax</a></li>
<li><a href="spell.html">spell</a></li>
<li><a href="diff.html">diff</a></li>
<li><a href="autocmd.html">autocmd</a></li>
<li><a href="filetype.html">filetype</a></li>
<li><a href="eval.html">eval</a></li>
<li><a href="channel.html">channel</a></li>
<li><a href="fold.html">fold</a></li>
</ul></dd>
<dt>Special issues</dt>
<dd><ul>
<li><a href="print.html">print</a></li>
<li><a href="remote.html">remote</a></li>
<li><a href="term.html">term</a></li>
<li><a href="digraph.html">digraph</a></li>
<li><a href="mbyte.html">mbyte</a></li>
<li><a href="mlang.html">mlang</a></li>
<li><a href="arabic.html">arabic</a></li>
<li><a href="farsi.html">farsi</a></li>
<li><a href="hebrew.html">hebrew</a></li>
<li><a href="russian.html">russian</a></li>
<li><a href="ft_ada.html">ft_ada</a></li>
<li><a href="ft_sql.html">ft_sql</a></li>
<li><a href="hangulin.html">hangulin</a></li>
<li><a href="rileft.html">rileft</a></li>
</ul></dd>
<dt>GUI</dt>
<dd><ul>
<li><a href="gui.html">gui</a></li>
<li><a href="gui_w32.html">gui_w32</a></li>
<li><a href="gui_x11.html">gui_x11</a></li>
</ul></dd>
<dt>Interfaces</dt>
<dd><ul>
<li><a href="if_cscop.html">if_cscop</a></li>
<li><a href="if_lua.html">if_lua</a></li>
<li><a href="if_mzsch.html">if_mzsch</a></li>
<li><a href="if_perl.html">if_perl</a></li>
<li><a href="if_pyth.html">if_pyth</a></li>
<li><a href="if_tcl.html">if_tcl</a></li>
<li><a href="if_ole.html">if_ole</a></li>
<li><a href="if_ruby.html">if_ruby</a></li>
<li><a href="debugger.html">debugger</a></li>
<li><a href="workshop.html">workshop</a></li>
<li><a href="netbeans.html">netbeans</a></li>
<li><a href="sign.html">sign</a></li>
</ul></dd>
<dt>Versions</dt>
<dd><ul>
<li><a href="vi_diff.html">vi_diff</a></li>
<li><a href="version4.html">version4</a></li>
<li><a href="version5.html">version5</a></li>
<li><a href="version6.html">version6</a></li>
<li><a href="version7.html">version7</a></li>
<li><a href="version8.html">version8</a></li>
</ul></dd>
<dt>Remarks about specific systems</dt>
<dd><ul>
<li><a href="os_390.html">os_390</a></li>
<li><a href="os_amiga.html">os_amiga</a></li>
<li><a href="os_beos.html">os_beos</a></li>
<li><a href="os_dos.html">os_dos</a></li>
<li><a href="os_mac.html">os_mac</a></li>
<li><a href="os_mint.html">os_mint</a></li>
<li><a href="os_msdos.html">os_msdos</a></li>
<li><a href="os_os2.html">os_os2</a></li>
<li><a href="os_qnx.html">os_qnx</a></li>
<li><a href="os_risc.html">os_risc</a></li>
<li><a href="os_unix.html">os_unix</a></li>
<li><a href="os_vms.html">os_vms</a></li>
<li><a href="os_win32.html">os_win32</a></li>
</ul></dd>
<dt>Standard plugins</dt>
<dd><ul>
<li><a href="pi_getscript.html">pi_getscript</a></li>
<li><a href="pi_gzip.html">pi_gzip</a></li>
<li><a href="pi_logipat.html">pi_logipat</a></li>
<li><a href="pi_netrw.html">pi_netrw</a></li>
<li><a href="pi_paren.html">pi_paren</a></li>
<li><a href="pi_tar.html">pi_tar</a></li>
<li><a href="pi_vimball.html">pi_vimball</a></li>
<li><a href="pi_zip.html">pi_zip</a></li>
</ul></dd>
<dt>Filetype plugins</dt>
<dd><ul>
<li><a href="pi_spec.html">pi_spec</a></li>
</ul></dd>
<dt>Others</dt>
<dd><ul>
<li><a href="vim_faq.html">vim_faq</a></li>
</ul></dd>
</dl>
</nav>
<article class="Vimdoc VimdocJa">
<div id='vimCodeElement'>
<a class="Constant" href="version4.html" name="version4.txt">version4.txt</a> For <span class="Identifier">Vim version 8.0.</span> Last change: 2006 Apr 24<br>
<br>
<br>
<span class="Identifier">VIM REFERENCE MANUAL by Bram Moolenaar</span><br>
<br>
<br>
This document lists the incompatible differences between Vim 3.0 and Vim 4.0.<br>
Although 4.0 is mentioned here, this is also for version 4.1, 4.2, etc..<br>
<br>
This file is important for everybody upgrading from Vim 3.0. Read it<br>
carefully to avoid unexpected problems.<br>
<br>
<a class="Type" href="options.html#'backup'">'backup'</a> option default changed <a class="Identifier" href="version4.html#backup-changed">backup-changed</a><br>
Extension for backup file changed <a class="Identifier" href="version4.html#backup-extension">backup-extension</a><br>
Structure of swap file changed <a class="Identifier" href="version4.html#swapfile-changed">swapfile-changed</a><br>
"-w scriptout" argument changed <a class="Identifier" href="version4.html#scriptout-changed">scriptout-changed</a><br>
Backspace and Delete keys <a class="Identifier" href="version4.html#backspace-delete">backspace-delete</a><br>
Escape for | changed <a class="Identifier" href="version4.html#escape-bar">escape-bar</a><br>
Key codes changed <a class="Identifier" href="version4.html#key-codes-changed">key-codes-changed</a><br>
Terminal options changed <a class="Identifier" href="version4.html#termcap-changed">termcap-changed</a><br>
<a class="Type" href="options.html#'errorformat'">'errorformat'</a> option changed <a class="Identifier" href="version4.html#errorformat-changed">errorformat-changed</a><br>
<a class="Type" href="vi_diff.html#'graphic'">'graphic'</a> option gone <a class="Identifier" href="version4.html#graphic-option-gone">graphic-option-gone</a><br>
<span class="MissingTag">'yankendofline'</span> option gone <a class="Identifier" href="version4.html#ye-option-gone">ye-option-gone</a><br>
<a class="Type" href="options.html#'icon'">'icon'</a> and <a class="Type" href="options.html#'title'">'title'</a> default value changed <a class="Identifier" href="version4.html#icon-changed">icon-changed</a><br>
<a class="Type" href="options.html#'highlight'">'highlight'</a> option changed <a class="Identifier" href="version4.html#highlight-changed">highlight-changed</a><br>
<a class="Type" href="options.html#'tildeop'">'tildeop'</a> and <a class="Type" href="options.html#'weirdinvert'">'weirdinvert'</a> short names changed <a class="Identifier" href="version4.html#short-name-changed">short-name-changed</a><br>
Use of "v", "V" and "<span class="Special">CTRL-V</span>" in Visual mode <a class="Identifier" href="version4.html#use-visual-cmds">use-visual-cmds</a><br>
<span class="Special">CTRL-B</span> in Insert mode removed <a class="Identifier" href="version4.html#toggle-revins">toggle-revins</a><br>
<br>
<br>
<a class="Type" href="options.html#'backup'">'backup'</a> option default changed <a class="Constant" href="version4.html#backup-changed" name="backup-changed">backup-changed</a><br>
<span class="PreProc">-------------------------------</span><br>
<br>
The default value for <a class="Type" href="options.html#'backup'">'backup'</a> used to be on. This resulted in a backup file<br>
being made when the original file was overwritten.<br>
<br>
Now the default for <a class="Type" href="options.html#'backup'">'backup'</a> is off. As soon as the writing of the file has<br>
successfully finished, the backup file is deleted. If you want to keep the<br>
backup file, set <a class="Type" href="options.html#'backup'">'backup'</a> on in your vimrc. The reason for this change is<br>
that many people complained that leaving a backup file behind is not<br>
Vi-compatible. <a class="Identifier" href="options.html#'backup'">'backup'</a><br>
<br>
<br>
Extension for backup file changed <a class="Constant" href="version4.html#backup-extension" name="backup-extension">backup-extension</a><br>
<span class="PreProc">---------------------------------</span><br>
<br>
The extension for the backup file used to be ".bak". Since other programs<br>
also use this extension and some users make copies with this extension, it was<br>
changed to the less obvious "~". Another advantage is that this takes less<br>
space, which is useful when working on a system with short file names. For<br>
example, on MS-DOS the backup files for "longfile.c" and "longfile.h" would<br>
both become "longfile.bak"; now they will be "longfile.c~" and "longfile.h~".<br>
<br>
If you prefer to use ".bak", you can set the <a class="Type" href="options.html#'backupext'">'backupext'</a> option:<br>
<div class="helpExample"> :set bex=.bak</div>
<br>
<br>
Structure of swap file changed <a class="Constant" href="version4.html#swapfile-changed" name="swapfile-changed">swapfile-changed</a><br>
<span class="PreProc">------------------------------</span><br>
<br>
The contents of the swap file were extended with several parameters. Vim<br>
stores the user name and other information about the edited file to make<br>
recovery more easy and to be able to know where the swap file comes from. The<br>
first part of the swap file can now be understood on a machine with a<br>
different byte order or sizeof(int). When you try to recover a file on such a<br>
machine, you will get an error message that this is not possible.<br>
<br>
Because of this change, swap files cannot be exchanged between 3.0 and 4.0.<br>
If you have a swap file from a crashed session with 3.0, use Vim 3.0 to<br>
recover the file---don't use 4.0. <a class="Identifier" href="recover.html#swap-file">swap-file</a><br>
<br>
<br>
"-w scriptout" argument changed <a class="Constant" href="version4.html#scriptout-changed" name="scriptout-changed">scriptout-changed</a><br>
<span class="PreProc">-------------------------------</span><br>
<br>
"vim -w scriptout" used to append to the scriptout file. Since this was<br>
illogical, it now creates a new file. An existing file is not overwritten<br>
(to avoid destroying an existing file for those who rely on the appending).<br>
[This was removed again later] <a class="Identifier" href="starting.html#-w">-w</a><br>
<br>
<br>
Backspace and Delete keys <a class="Constant" href="version4.html#backspace-delete" name="backspace-delete">backspace-delete</a><br>
<span class="PreProc">-------------------------</span><br>
<br>
In 3.0 both the delete key and the backspace key worked as a backspace in<br>
insert mode; they deleted the character to the left of the cursor. In 4.0 the<br>
delete key has a new function: it deletes the character under the cursor, just<br>
like it does on the command-line. If the cursor is after the end of the line<br>
and <a class="Type" href="options.html#'bs'">'bs'</a> is set, two lines are joined. <a class="Identifier" href="change.html#<Del>"><Del></a> <a class="Identifier" href="insert.html#i_<Del>">i_<Del></a><br>
<br>
In 3.0 the backspace key was always defined as <span class="Special">CTRL-H</span> and delete as <span class="Special">CTRL-?</span>.<br>
In 4.0 the code for the backspace and delete key is obtained from termcap or<br>
termlib, and adjusted for the "stty erase" value on Unix. This helps people<br>
who define the erase character according to the keyboard they are working on.<br>
<a class="Identifier" href="motion.html#<BS>"><BS></a> <a class="Identifier" href="insert.html#i_<BS>">i_<BS></a><br>
<br>
If you prefer backspace and delete in Insert mode to have the old behavior,<br>
put this line in your vimrc:<br>
<br>
inoremap ^? ^H<br>
<br>
And you may also want to add these, to fix the values for <span class="Special"><BS></span> and <span class="Special"><Del></span>:<br>
<br>
set t_kb=^H<br>
set t_kD=^?<br>
<br>
(Enter ^H with <span class="Special">CTRL-V</span> <span class="Special">CTRL-H</span> and ^? with <span class="Special">CTRL-V</span> <span class="Special">CTRL-?</span> or <span class="Special"><Del></span>.)<br>
<br>
If the value for t_kb is correct, but the t_kD value is not, use the ":fixdel"<br>
command. It will set t_kD according to the value of t_kb. This is useful if<br>
you are using several different terminals. <a class="Identifier" href="options.html#:fixdel">:fixdel</a><br>
<br>
When ^H is not recognized as <span class="Special"><BS></span> or <span class="Special"><Del></span>, it is used like a backspace.<br>
<br>
<br>
Escape for | changed <a class="Constant" href="version4.html#escape-bar" name="escape-bar">escape-bar</a><br>
<span class="PreProc">--------------------</span><br>
<br>
When the 'b' flag is present in <a class="Type" href="options.html#'cpoptions'">'cpoptions'</a>, the backslash cannot be used to<br>
escape '|' in mapping and abbreviate commands, only <span class="Special">CTRL-V</span> can. This is<br>
Vi-compatible. If you work in Vi-compatible mode and had used "\|" to include<br>
a bar in a mapping, this needs to be replaced by "^V|". See <a class="Identifier" href="cmdline.html#:bar">:bar</a>.<br>
<br>
<br>
Key codes changed <a class="Constant" href="version4.html#key-codes-changed" name="key-codes-changed">key-codes-changed</a><br>
<span class="PreProc">-----------------</span><br>
<br>
The internal representation of key codes has changed dramatically. In 3.0 a<br>
one-byte code was used to represent a key. This caused problems with<br>
different characters sets that also used these codes. In 4.0 a three-byte<br>
code is used that cannot be confused with a character. <a class="Identifier" href="intro.html#key-notation">key-notation</a><br>
<br>
If you have used the single-byte key codes in your vimrc for mappings, you<br>
will have to replace them with the 4.0 codes. Instead of using the three-byte<br>
code directly, you should use the symbolic representation for this in <>. See<br>
the table below. The table also lists the old name, as it was used in the 3.0<br>
documentation.<br>
<br>
The key names in <> can be used in mappings directly. This makes it possible<br>
to copy/paste examples or type them literally. The <> notation has been<br>
introduced for this <a class="Identifier" href="intro.html#<>"><></a>. The 'B' and '<' flags must not be present in<br>
<a class="Type" href="options.html#'cpoptions'">'cpoptions'</a> to enable this to work <a class="Identifier" href="options.html#'cpoptions'">'cpoptions'</a>.<br>
<br>
<span class="PreProc">old name new name old code old MS-DOS code</span><br>
<span class="PreProc">hex dec hex dec</span><br>
<span class="Special"><ESC></span> <span class="Special"><Esc></span><br>
<span class="Special"><TAB></span> <span class="Special"><Tab></span><br>
<span class="Special"><LF></span> <span class="Special"><NL></span> <span class="Special"><NewLine></span> <span class="Special"><LineFeed></span><br>
<span class="Special"><SPACE></span> <span class="Special"><Space></span><br>
<span class="Special"><NUL></span> <span class="Special"><Nul></span><br>
<span class="Special"><BELL></span> <span class="Special"><Bell></span><br>
<span class="Special"><BS></span> <span class="Special"><BS></span> <span class="Special"><BackSpace></span><br>
<span class="Special"><INSERT></span> <span class="Special"><Insert></span><br>
<span class="Special"><DEL></span> <span class="Special"><Del></span> <span class="Special"><Delete></span><br>
<span class="Special"><HOME></span> <span class="Special"><Home></span><br>
<span class="Special"><END></span> <span class="Special"><End></span><br>
<span class="Special"><PAGE_UP></span> <span class="Special"><PageUp></span><br>
<span class="Special"><PAGE_DOWN></span> <span class="Special"><PageDown></span><br>
<br>
<span class="Special"><C_UP></span> <span class="Special"><Up></span> 0x80 128 0xb0 176<br>
<span class="Special"><C_DOWN></span> <span class="Special"><Down></span> 0x81 129 0xb1 177<br>
<span class="Special"><C_LEFT></span> <span class="Special"><Left></span> 0x82 130 0xb2 178<br>
<span class="Special"><C_RIGHT></span> <span class="Special"><Right></span> 0x83 131 0xb3 179<br>
<span class="Special"><SC_UP></span> <span class="Special"><S-Up></span> 0x84 132 0xb4 180<br>
<span class="Special"><SC_DOWN></span> <span class="Special"><S-Down></span> 0x85 133 0xb5 181<br>
<span class="Special"><SC_LEFT></span> <span class="Special"><S-Left></span> 0x86 134 0xb6 182<br>
<span class="Special"><SC_RIGHT></span> <span class="Special"><S-Right></span> 0x87 135 0xb7 183<br>
<br>
<span class="Special"><F1></span> <span class="Special"><F1></span> 0x88 136 0xb8 184<br>
<span class="Special"><F2></span> <span class="Special"><F2></span> 0x89 137 0xb9 185<br>
<span class="Special"><F3></span> <span class="Special"><F3></span> 0x8a 138 0xba 186<br>
<span class="Special"><F4></span> <span class="Special"><F4></span> 0x8b 139 0xbb 187<br>
<span class="Special"><F5></span> <span class="Special"><F5></span> 0x8c 140 0xbc 188<br>
<span class="Special"><F6></span> <span class="Special"><F6></span> 0x8d 141 0xbd 189<br>
<span class="Special"><F7></span> <span class="Special"><F7></span> 0x8e 142 0xbe 190<br>
<span class="Special"><F8></span> <span class="Special"><F8></span> 0x8f 143 0xbf 191<br>
<span class="Special"><F9></span> <span class="Special"><F9></span> 0x90 144 0xc0 192<br>
<span class="Special"><F10></span> <span class="Special"><F10></span> 0x91 145 0xc1 193<br>
<br>
<span class="Special"><SF1></span> <span class="Special"><S-F1></span> 0x92 146 0xc2 194<br>
<span class="Special"><SF2></span> <span class="Special"><S-F2></span> 0x93 147 0xc3 195<br>
<span class="Special"><SF3></span> <span class="Special"><S-F3></span> 0x94 148 0xc4 196<br>
<span class="Special"><SF4></span> <span class="Special"><S-F4></span> 0x95 149 0xc5 197<br>
<span class="Special"><SF5></span> <span class="Special"><S-F5></span> 0x96 150 0xc6 198<br>
<span class="Special"><SF6></span> <span class="Special"><S-F6></span> 0x97 151 0xc7 199<br>
<span class="Special"><SF7></span> <span class="Special"><S-F7></span> 0x98 152 0xc8 200<br>
<span class="Special"><SF8></span> <span class="Special"><S-F8></span> 0x99 153 0xc9 201<br>
<span class="Special"><SF9></span> <span class="Special"><S-F9></span> 0x9a 154 0xca 202<br>
<span class="Special"><SF10></span> <span class="Special"><S-F10></span> 0x9b 155 0xcb 203<br>
<br>
<span class="Special"><HELP></span> <span class="Special"><Help></span> 0x9c 156 0xcc 204<br>
<span class="Special"><UNDO></span> <span class="Special"><Undo></span> 0x9d 157 0xcd 205<br>
<br>
(not used) 0x9e 158 0xce 206<br>
(not used) 0x9f 159 0xcf 207<br>
<br>
<br>
Terminal options changed <a class="Constant" href="version4.html#termcap-changed" name="termcap-changed">termcap-changed</a><br>
<span class="PreProc">------------------------</span><br>
<br>
The names of the terminal options have been changed to match the termcap names<br>
of these options. All terminal options now have the name t_xx, where xx is<br>
the termcap name. Normally these options are not used, unless you have a<br>
termcap entry that is wrong or incomplete, or you have set the highlight<br>
options to a different value. <a class="Identifier" href="term.html#terminal-options">terminal-options</a><br>
<br>
<span class="Todo">Note</span> that for some keys there is no termcap name. Use the <> type of name<br>
instead, which is a good idea anyway.<br>
<br>
<span class="Todo">Note</span> that "t_ti" has become "t_mr" (invert/reverse output) and "t_ts" has<br>
become "t_ti" (init terminal mode). Be careful when you use "t_ti"!<br>
<br>
<span class="PreProc">old name new name meaning </span><br>
t_cdl t_DL delete number of lines <a class="Constant" href="version4.html#t_cdl" name="t_cdl">t_cdl</a><br>
t_ci t_vi cursor invisible <a class="Constant" href="version4.html#t_ci" name="t_ci">t_ci</a><br>
t_cil t_AL insert number of lines <a class="Constant" href="version4.html#t_cil" name="t_cil">t_cil</a><br>
t_cm t_cm move cursor<br>
t_cri t_RI cursor number of chars right <a class="Constant" href="version4.html#t_cri" name="t_cri">t_cri</a><br>
t_cv t_ve cursor visible <a class="Constant" href="version4.html#t_cv" name="t_cv">t_cv</a><br>
t_cvv t_vs cursor very visible <a class="Constant" href="version4.html#t_cvv" name="t_cvv">t_cvv</a><br>
t_dl t_dl delete line<br>
t_cs t_cs scroll region<br>
t_ed t_cl clear display <a class="Constant" href="version4.html#t_ed" name="t_ed">t_ed</a><br>
t_el t_ce clear line <a class="Constant" href="version4.html#t_el" name="t_el">t_el</a><br>
t_il t_al insert line <a class="Constant" href="version4.html#t_il" name="t_il">t_il</a><br>
t_da display may be retained above the screen<br>
t_db display may be retained below the screen<br>
t_ke t_ke put terminal out of keypad transmit mode<br>
t_ks t_ks put terminal in keypad transmit mode<br>
t_ms t_ms save to move cursor in highlight mode<br>
t_se t_se normal mode (undo t_so)<br>
t_so t_so shift out (standout) mode<br>
t_ti t_mr reverse highlight<br>
t_tb t_md bold mode <a class="Constant" href="version4.html#t_tb" name="t_tb">t_tb</a><br>
t_tp t_me highlight end <a class="Constant" href="version4.html#t_tp" name="t_tp">t_tp</a><br>
t_sr t_sr scroll reverse<br>
t_te t_te out of termcap mode<br>
t_ts t_ti into termcap mode <a class="Constant" href="version4.html#t_ts_old" name="t_ts_old">t_ts_old</a><br>
t_vb t_vb visual bell<br>
t_csc t_CS cursor is relative to scroll region <a class="Constant" href="version4.html#t_csc" name="t_csc">t_csc</a><br>
<br>
t_ku t_ku <span class="Special"><Up></span> arrow up<br>
t_kd t_kd <span class="Special"><Down></span> arrow down<br>
t_kr t_kr <span class="Special"><Right></span> arrow right<br>
t_kl t_kl <span class="Special"><Left></span> arrow left<br>
t_sku <span class="Special"><S-Up></span> shifted arrow up <a class="Constant" href="version4.html#t_sku" name="t_sku">t_sku</a><br>
t_skd <span class="Special"><S-Down></span> shifted arrow down <a class="Constant" href="version4.html#t_skd" name="t_skd">t_skd</a><br>
t_skr t_%i <span class="Special"><S-Right></span> shifted arrow right <a class="Constant" href="version4.html#t_skr" name="t_skr">t_skr</a><br>
t_skl t_#4 <span class="Special"><S-Left></span> shifted arrow left <a class="Constant" href="version4.html#t_skl" name="t_skl">t_skl</a><br>
t_f1 t_k1 <span class="Special"><F1></span> function key 1 <a class="Constant" href="version4.html#t_f1" name="t_f1">t_f1</a><br>
t_f2 t_k2 <span class="Special"><F2></span> function key 2 <a class="Constant" href="version4.html#t_f2" name="t_f2">t_f2</a><br>
t_f3 t_k3 <span class="Special"><F3></span> function key 3 <a class="Constant" href="version4.html#t_f3" name="t_f3">t_f3</a><br>
t_f4 t_k4 <span class="Special"><F4></span> function key 4 <a class="Constant" href="version4.html#t_f4" name="t_f4">t_f4</a><br>
t_f5 t_k5 <span class="Special"><F5></span> function key 5 <a class="Constant" href="version4.html#t_f5" name="t_f5">t_f5</a><br>
t_f6 t_k6 <span class="Special"><F6></span> function key 6 <a class="Constant" href="version4.html#t_f6" name="t_f6">t_f6</a><br>
t_f7 t_k7 <span class="Special"><F7></span> function key 7 <a class="Constant" href="version4.html#t_f7" name="t_f7">t_f7</a><br>
t_f8 t_k8 <span class="Special"><F8></span> function key 8 <a class="Constant" href="version4.html#t_f8" name="t_f8">t_f8</a><br>
t_f9 t_k9 <span class="Special"><F9></span> function key 9 <a class="Constant" href="version4.html#t_f9" name="t_f9">t_f9</a><br>
t_f10 t_k; <span class="Special"><F10></span> function key 10 <a class="Constant" href="version4.html#t_f10" name="t_f10">t_f10</a><br>
t_sf1 <span class="Special"><S-F1></span> shifted function key 1 <a class="Constant" href="version4.html#t_sf1" name="t_sf1">t_sf1</a><br>
t_sf2 <span class="Special"><S-F2></span> shifted function key 2 <a class="Constant" href="version4.html#t_sf2" name="t_sf2">t_sf2</a><br>
t_sf3 <span class="Special"><S-F3></span> shifted function key 3 <a class="Constant" href="version4.html#t_sf3" name="t_sf3">t_sf3</a><br>
t_sf4 <span class="Special"><S-F4></span> shifted function key 4 <a class="Constant" href="version4.html#t_sf4" name="t_sf4">t_sf4</a><br>
t_sf5 <span class="Special"><S-F5></span> shifted function key 5 <a class="Constant" href="version4.html#t_sf5" name="t_sf5">t_sf5</a><br>
t_sf6 <span class="Special"><S-F6></span> shifted function key 6 <a class="Constant" href="version4.html#t_sf6" name="t_sf6">t_sf6</a><br>
t_sf7 <span class="Special"><S-F7></span> shifted function key 7 <a class="Constant" href="version4.html#t_sf7" name="t_sf7">t_sf7</a><br>
t_sf8 <span class="Special"><S-F8></span> shifted function key 8 <a class="Constant" href="version4.html#t_sf8" name="t_sf8">t_sf8</a><br>
t_sf9 <span class="Special"><S-F9></span> shifted function key 9 <a class="Constant" href="version4.html#t_sf9" name="t_sf9">t_sf9</a><br>
t_sf10 <span class="Special"><S-F10></span> shifted function key 10 <a class="Constant" href="version4.html#t_sf10" name="t_sf10">t_sf10</a><br>
t_help t_%1 <span class="Special"><Help></span> help key <a class="Constant" href="version4.html#t_help" name="t_help">t_help</a><br>
t_undo t_&8 <span class="Special"><Undo></span> undo key <a class="Constant" href="version4.html#t_undo" name="t_undo">t_undo</a><br>
<br>
<br>
<a class="Type" href="options.html#'errorformat'">'errorformat'</a> option changed <a class="Constant" href="version4.html#errorformat-changed" name="errorformat-changed">errorformat-changed</a><br>
<span class="PreProc">----------------------------</span><br>
<br>
<a class="Type" href="options.html#'errorformat'">'errorformat'</a> can now contain several formats, separated by commas. The first<br>
format that matches is used. The default values have been adjusted to catch<br>
the most common formats. <a class="Identifier" href="quickfix.html#errorformat">errorformat</a><br>
<br>
If you have a format that contains a comma, it needs to be preceded with a<br>
backslash. Type two backslashes, because the ":set" command will eat one.<br>
<br>
<br>
<a class="Type" href="vi_diff.html#'graphic'">'graphic'</a> option gone <a class="Constant" href="version4.html#graphic-option-gone" name="graphic-option-gone">graphic-option-gone</a><br>
<span class="PreProc">---------------------</span><br>
<br>
The <a class="Type" href="vi_diff.html#'graphic'">'graphic'</a> option was used to make the characters between <~> and 0xa0<br>
display directly on the screen. Now the <a class="Type" href="options.html#'isprint'">'isprint'</a> option takes care of this<br>
with many more possibilities. The default setting is the same; you only need<br>
to look into this if you previously set the <a class="Type" href="vi_diff.html#'graphic'">'graphic'</a> option in your vimrc.<br>
<a class="Identifier" href="options.html#'isprint'">'isprint'</a><br>
<br>
<br>
<span class="MissingTag">'yankendofline'</span> option gone <a class="Constant" href="version4.html#ye-option-gone" name="ye-option-gone">ye-option-gone</a><br>
<span class="PreProc">---------------------------</span><br>
<br>
The <span class="MissingTag">'yankendofline'</span> option has been removed. Instead you can just use<br>
:map Y y$<br>
<br>
<br>
<a class="Type" href="options.html#'icon'">'icon'</a> and <a class="Type" href="options.html#'title'">'title'</a> default value changed <a class="Constant" href="version4.html#icon-changed" name="icon-changed">icon-changed</a><br>
<span class="PreProc">----------------------------------------</span><br>
<br>
The <a class="Type" href="options.html#'title'">'title'</a> option is now only set by default if the original title can be<br>
restored. Avoids "Thanks for flying Vim" titles. If you want them anyway,<br>
put ":set title" in your vimrc. <a class="Identifier" href="options.html#'title'">'title'</a><br>
<br>
The default for <a class="Type" href="options.html#'icon'">'icon'</a> now depends on the possibility of restoring the<br>
original value, just like <a class="Type" href="options.html#'title'">'title'</a>. If you don't like your icon titles to be<br>
changed, add this line to your vimrc: <a class="Identifier" href="options.html#'icon'">'icon'</a><br>
:set noicon<br>
<br>
<br>
<a class="Type" href="options.html#'highlight'">'highlight'</a> option changed <a class="Constant" href="version4.html#highlight-changed" name="highlight-changed">highlight-changed</a><br>
<span class="PreProc">--------------------------</span><br>
<br>
The 'i' flag now means italic highlighting, instead of invert. The 'r' flag<br>
is used for reverse highlighting, which is what 'i' used to be. Normally you<br>
won't see the difference, because italic mode is not supported on most<br>
terminals and reverse mode is used as a fallback. <a class="Identifier" href="options.html#'highlight'">'highlight'</a><br>
<br>
When an occasion is not present in <a class="Type" href="options.html#'highlight'">'highlight'</a>, use the mode from the default<br>
value for <a class="Type" href="options.html#'highlight'">'highlight'</a>, instead of reverse mode.<br>
<br>
<br>
<a class="Type" href="options.html#'tildeop'">'tildeop'</a> and <a class="Type" href="options.html#'weirdinvert'">'weirdinvert'</a> short names changed <a class="Constant" href="version4.html#short-name-changed" name="short-name-changed">short-name-changed</a><br>
<span class="PreProc">-----------------------------------------------</span><br>
<br>
Renamed <a class="Type" href="options.html#'to'">'to'</a> (abbreviation for <a class="Type" href="options.html#'tildeop'">'tildeop'</a>) to <a class="Type" href="options.html#'top'">'top'</a>. <a class="Identifier" href="options.html#'tildeop'">'tildeop'</a><br>
Renamed <a class="Type" href="options.html#'wi'">'wi'</a> (abbreviation for <a class="Type" href="options.html#'weirdinvert'">'weirdinvert'</a>) to <a class="Type" href="options.html#'wiv'">'wiv'</a>. <a class="Identifier" href="options.html#'weirdinvert'">'weirdinvert'</a><br>
<br>
This was done because Vi uses <a class="Type" href="options.html#'wi'">'wi'</a> as the short name for <a class="Type" href="options.html#'window'">'window'</a> and <a class="Type" href="options.html#'to'">'to'</a> as<br>
the short name for <a class="Type" href="options.html#'timeout'">'timeout'</a>. This means that if you try setting these<br>
options, you won't get an error message, but the effect will be different.<br>
<br>
<br>
Use of "v", "V" and "<span class="Special">CTRL-V</span>" in Visual mode <a class="Constant" href="version4.html#use-visual-cmds" name="use-visual-cmds">use-visual-cmds</a><br>
<span class="PreProc">-------------------------------------------</span><br>
<br>
In Visual mode, "v", "V", and "<span class="Special">CTRL-V</span>" used to end Visual mode. Now this<br>
happens only if the Visual mode was in the corresponding type. Otherwise the<br>
type of Visual mode is changed. Now only ESC can be used in all circumstances<br>
to end Visual mode without doing anything. <a class="Identifier" href="visual.html#v_V">v_V</a><br>
<br>
<br>
<span class="Special">CTRL-B</span> in Insert mode removed <a class="Constant" href="version4.html#toggle-revins" name="toggle-revins">toggle-revins</a><br>
<span class="PreProc">-----------------------------</span><br>
<br>
<span class="Special">CTRL-B</span> in Insert mode used to toggle the <a class="Type" href="options.html#'revins'">'revins'</a> option. If you don't know<br>
this and accidentally hit <span class="Special">CTRL-B</span>, it is very difficult to find out how to undo<br>
it. Since hardly anybody uses this feature, it is disabled by default. If<br>
you want to use it, define RIGHTLEFT in feature.h before compiling. <a class="Identifier" href="options.html#'revins'">'revins'</a><br>
<br>
vim:tw=78:ts=8:ft=help:norl:<br>
</div>
</article>
<footer>
<a href="#top">Return to the top</a> - <a href="index.html">Return to main</a>
<span class="EnglishJapaneseLink">
<span class="CurrentLanguage">English</span>
</span>
<br />
<div style="text-align:right;">
Hosted by <a href="https://github.com/vim-jp/vimdoc-en">vimdoc-en project</a><br />
If you met any problem, please report it to <a href="https://github.com/vim-jp/vimdoc-en/issues">issue</a>.<br />
</div>
</footer>
<!--<script src="js/check-referrer.js" type="text/javascript"></script>-->
</body>
</html>
<!-- vim:set ts=8 sts=2 sw=2 tw=0 et: -->
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。