annotate runtime/doc/version4.txt @ 29882:5454d999bbd4

Added tag v9.0.0279 for changeset 0cc9a300171720b99acf0a10f50ea8d8619a13a2
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 18:00:05 +0200
parents f8116058ca76
children 4635e43f2c6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29314
f8116058ca76 release version 9.0
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
1 *version4.txt* For Vim version 9.0. Last change: 2006 Apr 24
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 This document lists the incompatible differences between Vim 3.0 and Vim 4.0.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 Although 4.0 is mentioned here, this is also for version 4.1, 4.2, etc..
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 This file is important for everybody upgrading from Vim 3.0. Read it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 carefully to avoid unexpected problems.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 'backup' option default changed |backup-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 Extension for backup file changed |backup-extension|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 Structure of swap file changed |swapfile-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 "-w scriptout" argument changed |scriptout-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 Backspace and Delete keys |backspace-delete|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 Escape for | changed |escape-bar|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 Key codes changed |key-codes-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 Terminal options changed |termcap-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 'errorformat' option changed |errorformat-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 'graphic' option gone |graphic-option-gone|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 'yankendofline' option gone |ye-option-gone|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 'icon' and 'title' default value changed |icon-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 'highlight' option changed |highlight-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 'tildeop' and 'weirdinvert' short names changed |short-name-changed|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 Use of "v", "V" and "CTRL-V" in Visual mode |use-visual-cmds|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 CTRL-B in Insert mode removed |toggle-revins|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 'backup' option default changed *backup-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 -------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 The default value for 'backup' used to be on. This resulted in a backup file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 being made when the original file was overwritten.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 Now the default for 'backup' is off. As soon as the writing of the file has
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 successfully finished, the backup file is deleted. If you want to keep the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 backup file, set 'backup' on in your vimrc. The reason for this change is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 that many people complained that leaving a backup file behind is not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 Vi-compatible. |'backup'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 Extension for backup file changed *backup-extension*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 ---------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 The extension for the backup file used to be ".bak". Since other programs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 also use this extension and some users make copies with this extension, it was
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 changed to the less obvious "~". Another advantage is that this takes less
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 space, which is useful when working on a system with short file names. For
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 example, on MS-DOS the backup files for "longfile.c" and "longfile.h" would
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 both become "longfile.bak"; now they will be "longfile.c~" and "longfile.h~".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 If you prefer to use ".bak", you can set the 'backupext' option: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 :set bex=.bak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 Structure of swap file changed *swapfile-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 ------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 The contents of the swap file were extended with several parameters. Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 stores the user name and other information about the edited file to make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 recovery more easy and to be able to know where the swap file comes from. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 first part of the swap file can now be understood on a machine with a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 different byte order or sizeof(int). When you try to recover a file on such a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 machine, you will get an error message that this is not possible.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 Because of this change, swap files cannot be exchanged between 3.0 and 4.0.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 If you have a swap file from a crashed session with 3.0, use Vim 3.0 to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 recover the file---don't use 4.0. |swap-file|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 "-w scriptout" argument changed *scriptout-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 -------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 "vim -w scriptout" used to append to the scriptout file. Since this was
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 illogical, it now creates a new file. An existing file is not overwritten
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 (to avoid destroying an existing file for those who rely on the appending).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 [This was removed again later] |-w|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 Backspace and Delete keys *backspace-delete*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 -------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 In 3.0 both the delete key and the backspace key worked as a backspace in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 insert mode; they deleted the character to the left of the cursor. In 4.0 the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 delete key has a new function: it deletes the character under the cursor, just
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 like it does on the command-line. If the cursor is after the end of the line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 and 'bs' is set, two lines are joined. |<Del>| |i_<Del>|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 In 3.0 the backspace key was always defined as CTRL-H and delete as CTRL-?.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 In 4.0 the code for the backspace and delete key is obtained from termcap or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 termlib, and adjusted for the "stty erase" value on Unix. This helps people
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 who define the erase character according to the keyboard they are working on.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 |<BS>| |i_<BS>|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 If you prefer backspace and delete in Insert mode to have the old behavior,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 put this line in your vimrc:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 inoremap ^? ^H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 And you may also want to add these, to fix the values for <BS> and <Del>:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 set t_kb=^H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 set t_kD=^?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 (Enter ^H with CTRL-V CTRL-H and ^? with CTRL-V CTRL-? or <Del>.)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 If the value for t_kb is correct, but the t_kD value is not, use the ":fixdel"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 command. It will set t_kD according to the value of t_kb. This is useful if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 you are using several different terminals. |:fixdel|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 When ^H is not recognized as <BS> or <Del>, it is used like a backspace.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 Escape for | changed *escape-bar*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 --------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 When the 'b' flag is present in 'cpoptions', the backslash cannot be used to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 escape '|' in mapping and abbreviate commands, only CTRL-V can. This is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 Vi-compatible. If you work in Vi-compatible mode and had used "\|" to include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 a bar in a mapping, this needs to be replaced by "^V|". See |:bar|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 Key codes changed *key-codes-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 -----------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 The internal representation of key codes has changed dramatically. In 3.0 a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 one-byte code was used to represent a key. This caused problems with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 different characters sets that also used these codes. In 4.0 a three-byte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 code is used that cannot be confused with a character. |key-notation|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 If you have used the single-byte key codes in your vimrc for mappings, you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 will have to replace them with the 4.0 codes. Instead of using the three-byte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 code directly, you should use the symbolic representation for this in <>. See
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 the table below. The table also lists the old name, as it was used in the 3.0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 documentation.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 The key names in <> can be used in mappings directly. This makes it possible
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 to copy/paste examples or type them literally. The <> notation has been
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 introduced for this |<>|. The 'B' and '<' flags must not be present in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 'cpoptions' to enable this to work |'cpoptions'|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 old name new name old code old MS-DOS code ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 hex dec hex dec ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 <ESC> <Esc>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 <TAB> <Tab>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 <LF> <NL> <NewLine> <LineFeed>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 <SPACE> <Space>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 <NUL> <Nul>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 <BELL> <Bell>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 <BS> <BS> <BackSpace>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 <INSERT> <Insert>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 <DEL> <Del> <Delete>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 <HOME> <Home>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 <END> <End>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 <PAGE_UP> <PageUp>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 <PAGE_DOWN> <PageDown>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 <C_UP> <Up> 0x80 128 0xb0 176
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 <C_DOWN> <Down> 0x81 129 0xb1 177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 <C_LEFT> <Left> 0x82 130 0xb2 178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 <C_RIGHT> <Right> 0x83 131 0xb3 179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 <SC_UP> <S-Up> 0x84 132 0xb4 180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 <SC_DOWN> <S-Down> 0x85 133 0xb5 181
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 <SC_LEFT> <S-Left> 0x86 134 0xb6 182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 <SC_RIGHT> <S-Right> 0x87 135 0xb7 183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 <F1> <F1> 0x88 136 0xb8 184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 <F2> <F2> 0x89 137 0xb9 185
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 <F3> <F3> 0x8a 138 0xba 186
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 <F4> <F4> 0x8b 139 0xbb 187
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 <F5> <F5> 0x8c 140 0xbc 188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 <F6> <F6> 0x8d 141 0xbd 189
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 <F7> <F7> 0x8e 142 0xbe 190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 <F8> <F8> 0x8f 143 0xbf 191
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 <F9> <F9> 0x90 144 0xc0 192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 <F10> <F10> 0x91 145 0xc1 193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 <SF1> <S-F1> 0x92 146 0xc2 194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 <SF2> <S-F2> 0x93 147 0xc3 195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 <SF3> <S-F3> 0x94 148 0xc4 196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 <SF4> <S-F4> 0x95 149 0xc5 197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 <SF5> <S-F5> 0x96 150 0xc6 198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 <SF6> <S-F6> 0x97 151 0xc7 199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 <SF7> <S-F7> 0x98 152 0xc8 200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 <SF8> <S-F8> 0x99 153 0xc9 201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 <SF9> <S-F9> 0x9a 154 0xca 202
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 <SF10> <S-F10> 0x9b 155 0xcb 203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 <HELP> <Help> 0x9c 156 0xcc 204
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 <UNDO> <Undo> 0x9d 157 0xcd 205
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 (not used) 0x9e 158 0xce 206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 (not used) 0x9f 159 0xcf 207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 Terminal options changed *termcap-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 ------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 The names of the terminal options have been changed to match the termcap names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 of these options. All terminal options now have the name t_xx, where xx is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 the termcap name. Normally these options are not used, unless you have a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 termcap entry that is wrong or incomplete, or you have set the highlight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 options to a different value. |terminal-options|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 Note that for some keys there is no termcap name. Use the <> type of name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 instead, which is a good idea anyway.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 Note that "t_ti" has become "t_mr" (invert/reverse output) and "t_ts" has
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 become "t_ti" (init terminal mode). Be careful when you use "t_ti"!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 old name new name meaning ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 t_cdl t_DL delete number of lines *t_cdl*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 t_ci t_vi cursor invisible *t_ci*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 t_cil t_AL insert number of lines *t_cil*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 t_cm t_cm move cursor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 t_cri t_RI cursor number of chars right *t_cri*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 t_cv t_ve cursor visible *t_cv*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 t_cvv t_vs cursor very visible *t_cvv*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 t_dl t_dl delete line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 t_cs t_cs scroll region
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 t_ed t_cl clear display *t_ed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 t_el t_ce clear line *t_el*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 t_il t_al insert line *t_il*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 t_da display may be retained above the screen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 t_db display may be retained below the screen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 t_ke t_ke put terminal out of keypad transmit mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 t_ks t_ks put terminal in keypad transmit mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 t_ms t_ms save to move cursor in highlight mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 t_se t_se normal mode (undo t_so)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 t_so t_so shift out (standout) mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 t_ti t_mr reverse highlight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 t_tb t_md bold mode *t_tb*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 t_tp t_me highlight end *t_tp*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 t_sr t_sr scroll reverse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 t_te t_te out of termcap mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 t_ts t_ti into termcap mode *t_ts_old*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 t_vb t_vb visual bell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 t_csc t_CS cursor is relative to scroll region *t_csc*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 t_ku t_ku <Up> arrow up
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 t_kd t_kd <Down> arrow down
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 t_kr t_kr <Right> arrow right
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 t_kl t_kl <Left> arrow left
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 t_sku <S-Up> shifted arrow up *t_sku*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 t_skd <S-Down> shifted arrow down *t_skd*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 t_skr t_%i <S-Right> shifted arrow right *t_skr*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 t_skl t_#4 <S-Left> shifted arrow left *t_skl*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 t_f1 t_k1 <F1> function key 1 *t_f1*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 t_f2 t_k2 <F2> function key 2 *t_f2*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 t_f3 t_k3 <F3> function key 3 *t_f3*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 t_f4 t_k4 <F4> function key 4 *t_f4*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 t_f5 t_k5 <F5> function key 5 *t_f5*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 t_f6 t_k6 <F6> function key 6 *t_f6*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 t_f7 t_k7 <F7> function key 7 *t_f7*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 t_f8 t_k8 <F8> function key 8 *t_f8*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 t_f9 t_k9 <F9> function key 9 *t_f9*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 t_f10 t_k; <F10> function key 10 *t_f10*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 t_sf1 <S-F1> shifted function key 1 *t_sf1*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 t_sf2 <S-F2> shifted function key 2 *t_sf2*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 t_sf3 <S-F3> shifted function key 3 *t_sf3*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 t_sf4 <S-F4> shifted function key 4 *t_sf4*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 t_sf5 <S-F5> shifted function key 5 *t_sf5*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 t_sf6 <S-F6> shifted function key 6 *t_sf6*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 t_sf7 <S-F7> shifted function key 7 *t_sf7*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 t_sf8 <S-F8> shifted function key 8 *t_sf8*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 t_sf9 <S-F9> shifted function key 9 *t_sf9*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 t_sf10 <S-F10> shifted function key 10 *t_sf10*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 t_help t_%1 <Help> help key *t_help*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 t_undo t_&8 <Undo> undo key *t_undo*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 'errorformat' option changed *errorformat-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 ----------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 'errorformat' can now contain several formats, separated by commas. The first
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 format that matches is used. The default values have been adjusted to catch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 the most common formats. |errorformat|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 If you have a format that contains a comma, it needs to be preceded with a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 backslash. Type two backslashes, because the ":set" command will eat one.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 'graphic' option gone *graphic-option-gone*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 ---------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 The 'graphic' option was used to make the characters between <~> and 0xa0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 display directly on the screen. Now the 'isprint' option takes care of this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 with many more possibilities. The default setting is the same; you only need
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 to look into this if you previously set the 'graphic' option in your vimrc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 |'isprint'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 'yankendofline' option gone *ye-option-gone*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 ---------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 The 'yankendofline' option has been removed. Instead you can just use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 :map Y y$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 'icon' and 'title' default value changed *icon-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 ----------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 The 'title' option is now only set by default if the original title can be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 restored. Avoids "Thanks for flying Vim" titles. If you want them anyway,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 put ":set title" in your vimrc. |'title'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 The default for 'icon' now depends on the possibility of restoring the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 original value, just like 'title'. If you don't like your icon titles to be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 changed, add this line to your vimrc: |'icon'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 :set noicon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 'highlight' option changed *highlight-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 --------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 The 'i' flag now means italic highlighting, instead of invert. The 'r' flag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 is used for reverse highlighting, which is what 'i' used to be. Normally you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 won't see the difference, because italic mode is not supported on most
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 terminals and reverse mode is used as a fallback. |'highlight'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 When an occasion is not present in 'highlight', use the mode from the default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 value for 'highlight', instead of reverse mode.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 'tildeop' and 'weirdinvert' short names changed *short-name-changed*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 -----------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 Renamed 'to' (abbreviation for 'tildeop') to 'top'. |'tildeop'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 Renamed 'wi' (abbreviation for 'weirdinvert') to 'wiv'. |'weirdinvert'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 This was done because Vi uses 'wi' as the short name for 'window' and 'to' as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 the short name for 'timeout'. This means that if you try setting these
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 options, you won't get an error message, but the effect will be different.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 Use of "v", "V" and "CTRL-V" in Visual mode *use-visual-cmds*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 -------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 In Visual mode, "v", "V", and "CTRL-V" used to end Visual mode. Now this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 happens only if the Visual mode was in the corresponding type. Otherwise the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 type of Visual mode is changed. Now only ESC can be used in all circumstances
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 to end Visual mode without doing anything. |v_V|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 CTRL-B in Insert mode removed *toggle-revins*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 -----------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 CTRL-B in Insert mode used to toggle the 'revins' option. If you don't know
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 this and accidentally hit CTRL-B, it is very difficult to find out how to undo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 it. Since hardly anybody uses this feature, it is disabled by default. If
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 you want to use it, define RIGHTLEFT in feature.h before compiling. |'revins'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13963
diff changeset
355 vim:tw=78:ts=8:noet:ft=help:norl: