Mercurial > vim
comparison runtime/doc/change.txt @ 6647:3af822eb4da5
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 28 Feb 2015 13:11:45 +0100 |
parents | b0a227941705 |
children | 29c328f69aaa |
comparison
equal
deleted
inserted
replaced
6646:22d190c6dfd3 | 6647:3af822eb4da5 |
---|---|
1 *change.txt* For Vim version 7.4. Last change: 2015 Jan 27 | 1 *change.txt* For Vim version 7.4. Last change: 2015 Feb 10 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1190 if none of buffers matches the given name. | 1190 if none of buffers matches the given name. |
1191 | 1191 |
1192 7. Expression register "= *quote_=* *quote=* *@=* | 1192 7. Expression register "= *quote_=* *quote=* *@=* |
1193 This is not really a register that stores text, but is a way to use an | 1193 This is not really a register that stores text, but is a way to use an |
1194 expression in commands which use a register. The expression register is | 1194 expression in commands which use a register. The expression register is |
1195 read-only; you cannot put text into it. After the '=', the cursor moves to | 1195 read-write. |
1196 the command-line, where you can enter any expression (see |expression|). All | 1196 |
1197 normal command-line editing commands are available, including a special | 1197 When typing the '=' after " or CTRL-R the cursor moves to the command-line, |
1198 history for expressions. When you end the command-line by typing <CR>, Vim | 1198 where you can enter any expression (see |expression|). All normal |
1199 computes the result of the expression. If you end it with <Esc>, Vim abandons | 1199 command-line editing commands are available, including a special history for |
1200 the expression. If you do not enter an expression, Vim uses the previous | 1200 expressions. When you end the command-line by typing <CR>, Vim computes the |
1201 result of the expression. If you end it with <Esc>, Vim abandons the | |
1202 expression. If you do not enter an expression, Vim uses the previous | |
1201 expression (like with the "/" command). | 1203 expression (like with the "/" command). |
1202 | 1204 |
1203 The expression must evaluate to a String. A Number is always automatically | 1205 The expression must evaluate to a String. A Number is always automatically |
1204 converted to a String. For the "p" and ":put" command, if the result is a | 1206 converted to a String. For the "p" and ":put" command, if the result is a |
1205 Float it's converted into a String. If the result is a List each element is | 1207 Float it's converted into a String. If the result is a List each element is |
1240 10. Last search pattern register "/ *quote_/* *quote/* | 1242 10. Last search pattern register "/ *quote_/* *quote/* |
1241 Contains the most recent search-pattern. This is used for "n" and 'hlsearch'. | 1243 Contains the most recent search-pattern. This is used for "n" and 'hlsearch'. |
1242 It is writable with `:let`, you can change it to have 'hlsearch' highlight | 1244 It is writable with `:let`, you can change it to have 'hlsearch' highlight |
1243 other matches without actually searching. You can't yank or delete into this | 1245 other matches without actually searching. You can't yank or delete into this |
1244 register. The search direction is available in |v:searchforward|. | 1246 register. The search direction is available in |v:searchforward|. |
1245 Note that the valued is restored when returning from a function | 1247 Note that the value is restored when returning from a function |
1246 |function-search-undo|. | 1248 |function-search-undo|. |
1247 {not in Vi} | 1249 {not in Vi} |
1248 | 1250 |
1249 *@/* | 1251 *@/* |
1250 You can write to a register with a `:let` command |:let-@|. Example: > | 1252 You can write to a register with a `:let` command |:let-@|. Example: > |
1455 Notice the use of the "x" flag in the above three-piece comment definition. | 1457 Notice the use of the "x" flag in the above three-piece comment definition. |
1456 When you hit Return in a C-comment, Vim will insert the middle comment leader | 1458 When you hit Return in a C-comment, Vim will insert the middle comment leader |
1457 for the new line: " * ". To close this comment you just have to type "/" | 1459 for the new line: " * ". To close this comment you just have to type "/" |
1458 before typing anything else on the new line. This will replace the | 1460 before typing anything else on the new line. This will replace the |
1459 middle-comment leader with the end-comment leader and apply any specified | 1461 middle-comment leader with the end-comment leader and apply any specified |
1460 alignment, leaving just " */". There is no need to hit BackSpace first. | 1462 alignment, leaving just " */". There is no need to hit Backspace first. |
1461 | 1463 |
1462 When there is a match with a middle part, but there also is a maching end part | 1464 When there is a match with a middle part, but there also is a matching end |
1463 which is longer, the end part is used. This makes a C style comment work | 1465 part which is longer, the end part is used. This makes a C style comment work |
1464 without requiring the middle part to end with a space. | 1466 without requiring the middle part to end with a space. |
1465 | 1467 |
1466 Here is an example of alignment flags at work to make a comment stand out | 1468 Here is an example of alignment flags at work to make a comment stand out |
1467 (kind of looks like a 1 too). Consider comment string: > | 1469 (kind of looks like a 1 too). Consider comment string: > |
1468 :set comments=sr:/***,m:**,ex-2:******/ | 1470 :set comments=sr:/***,m:**,ex-2:******/ |