|
1 | | -*change.txt* For Vim version 9.2. Last change: 2026 Jun 18 |
| 1 | +*change.txt* For Vim version 9.2. Last change: 2026 Jun 22 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1332,10 +1332,11 @@ and ":put" commands and with CTRL-R. |
1332 | 1332 | the command was executed completely from a mapping. |
1333 | 1333 | {not available when compiled without the |+cmdline_hist| |
1334 | 1334 | feature} |
1335 | | - *quote_#* *quote#* |
1336 | | -6. Alternate file register "# |
| 1335 | + |
| 1336 | +6. Alternate file register "# *quote_#* *quote#* *@#* |
1337 | 1337 | Contains the |alternate-file| name for current window |
1338 | | -This register is writeable and changes which buffer CTRL-^ enters. |
| 1338 | +This register is writable with `:let` and |setreg()|. This changes which buffer |
| 1339 | +CTRL-^ enters. You can't yank or delete into this register. |
1339 | 1340 | A String is matched against existing buffer names, like |:buffer|: > |
1340 | 1341 | let @# = 'buffer_name' |
1341 | 1342 | Also supports using buffer number and |file-pattern|. |
@@ -1398,11 +1399,12 @@ When writing to this register, nothing happens. This can be used to delete |
1398 | 1399 | text without affecting the normal registers. When reading from this register, |
1399 | 1400 | nothing is returned. |
1400 | 1401 |
|
1401 | | -10. Last search pattern register "/ *quote_/* *quote/* |
| 1402 | +10. Last search pattern register "/ *quote_/* *quote/* |
1402 | 1403 | Contains the most recent search-pattern. This is used for "n" and 'hlsearch'. |
1403 | | -It is writable with `:let`, you can change it to have 'hlsearch' highlight |
1404 | | -other matches without actually searching. You can't yank or delete into this |
1405 | | -register. The search direction is available in |v:searchforward|. |
| 1404 | +This register is writable with `:let` and |setreg()|. You can change it to have |
| 1405 | +'hlsearch' highlight other matches without actually searching. You can't yank |
| 1406 | +or delete into this register. The search direction is available in |
| 1407 | +|v:searchforward|. |
1406 | 1408 | Note that the value is restored when returning from a function |
1407 | 1409 | |function-search-undo|. |
1408 | 1410 |
|
|
0 commit comments