Mirror of the Vim source from https://github.com/vim/vim
修訂 | 36071a92cb764412276e067fed099164b0170436 (tree) |
---|---|
時間 | 2005-12-12 06:36:39 |
作者 | vimboss |
Commiter | vimboss |
updated for version 7.0167
@@ -1,4 +1,4 @@ | ||
1 | -*todo.txt* For Vim version 7.0aa. Last change: 2005 Dec 10 | |
1 | +*todo.txt* For Vim version 7.0aa. Last change: 2005 Dec 11 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -30,12 +30,6 @@ | ||
30 | 30 | *known-bugs* |
31 | 31 | -------------------- Known bugs and current work ----------------------- |
32 | 32 | |
33 | -When a buffer has no name, ":w >>fname" uses "fname" for the buffer, that is | |
34 | -not logical. | |
35 | - | |
36 | -SwapExists with editexisting plugin: Is there a simple way to detect ":tag | |
37 | -function" and have the remote Vim jump to the tag? | |
38 | - | |
39 | 33 | When editing a file "a" that is a symbolic link to "b", while another Vim is |
40 | 34 | editing "b", there is no warning. Follow symlink to make swap file name? |
41 | 35 | Patch from Stefano Zacchiroli. Updated by James Vega, Dec 2. |
@@ -156,6 +150,8 @@ | ||
156 | 150 | Complete command names by searching in $PATH. When completing file names |
157 | 151 | escape special characters ";&<>(){}". (Adri Verhoef) |
158 | 152 | |
153 | +Are there more commands where v:swapcommand can be set to something useful? | |
154 | + | |
159 | 155 | Awaiting response: |
160 | 156 | - Win32: tearoff menu window should have a scrollbar when it's taller than |
161 | 157 | the screen. |
@@ -1,4 +1,4 @@ | ||
1 | -*version7.txt* For Vim version 7.0aa. Last change: 2005 Dec 09 | |
1 | +*version7.txt* For Vim version 7.0aa. Last change: 2005 Dec 11 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -400,12 +400,8 @@ | ||
400 | 400 | |:diffoff| Switch off diff mode in the current window or in all |
401 | 401 | windows. |
402 | 402 | |
403 | -|:keepalt| Do not change the alternate file. | |
404 | - | |
405 | 403 | |:delmarks| Delete marks. |
406 | 404 | |
407 | -|:sandbox| Command modifier: execute the argument in the sandbox. | |
408 | - | |
409 | 405 | |:exusage| Help for Ex commands (Nvi command). |
410 | 406 | |
411 | 407 | |:viusage| Help for Vi commands (Nvi command). |
@@ -422,6 +418,14 @@ | ||
422 | 418 | |:cexpr| Read error messages from a Vim expression (Yegappan |
423 | 419 | Lakshmanan). |
424 | 420 | |
421 | +Ex command modifiers: ~ | |
422 | + | |
423 | +|:keepalt| Do not change the alternate file. | |
424 | + | |
425 | +|:noautocmd| Do not trigger autocommand events. | |
426 | + | |
427 | +|:sandbox| Execute a command in the sandbox. | |
428 | + | |
425 | 429 | |
426 | 430 | New and extended functions: ~ |
427 | 431 |
@@ -607,6 +611,12 @@ | ||
607 | 611 | The |v:scrollstart| variable has been added to help finding the location in |
608 | 612 | your script that causes the hit-enter prompt. |
609 | 613 | |
614 | +To make it possible to handle the situation that a file is being edited that | |
615 | +is already being edited by another Vim instance, the |SwapExists| event has | |
616 | +been added. The |v:swapname|, |v:swapchoice| and |v:swapcommand| variables | |
617 | +can be used, for example to use the |client-server| functionality to bring the | |
618 | +other Vim to the foreground. | |
619 | + | |
610 | 620 | ============================================================================== |
611 | 621 | IMPROVEMENTS *improvements-7* |
612 | 622 |
@@ -854,6 +864,11 @@ | ||
854 | 864 | In the ATTENTION prompt put the "Delete it" choice before "Quit" to make it |
855 | 865 | more logical. (Robert Webb) |
856 | 866 | |
867 | +When appending to a file while the buffer has no name the name of the appended | |
868 | +file would be used for the current buffer. But the buffer contents is | |
869 | +actually different from the file content. Don't set the file name, unless the | |
870 | +'P' flag is present in 'cpoptions'. | |
871 | + | |
857 | 872 | ============================================================================== |
858 | 873 | COMPILE TIME CHANGES *compile-changes-7* |
859 | 874 |
@@ -1350,7 +1365,7 @@ | ||
1350 | 1365 | given. Now report the first encountered error. |
1351 | 1366 | |
1352 | 1367 | When using ":e ++enc=name file" and iconv() was used for conversion an error |
1353 | -caused a fallback to no conversion. Now replace a character with '?' and | |
1368 | +caused a fall-back to no conversion. Now replace a character with '?' and | |
1354 | 1369 | continue. |
1355 | 1370 | |
1356 | 1371 | When opening a new buffer the local value of 'bomb' was not initialized from |
@@ -1417,4 +1432,10 @@ | ||
1417 | 1432 | |
1418 | 1433 | Unix: ":w a;b~c" caused an error in expanding wildcards. |
1419 | 1434 | |
1435 | +When appending to a file with ":w >>fname" in a buffer without a name, causing | |
1436 | +the buffer to use "fname", the modified flag was reset. | |
1437 | + | |
1438 | +When appending to to current file the "not edited" flag would be reset. | |
1439 | +":w" would overwrite the file accidentally. | |
1440 | + | |
1420 | 1441 | vim:tw=78:ts=8:ft=help:norl: |
@@ -340,6 +340,7 @@ | ||
340 | 340 | {VV_NAME("scrollstart", VAR_STRING), 0}, |
341 | 341 | {VV_NAME("swapname", VAR_STRING), VV_RO}, |
342 | 342 | {VV_NAME("swapchoice", VAR_STRING), 0}, |
343 | + {VV_NAME("swapcommand", VAR_STRING), VV_RO}, | |
343 | 344 | }; |
344 | 345 | |
345 | 346 | /* shorthand */ |
@@ -3492,6 +3492,15 @@ | ||
3492 | 3492 | redir_off = save_ro; |
3493 | 3493 | --emsg_skip; |
3494 | 3494 | |
3495 | + /* A client can tell us to redraw, but not to display the cursor, so do | |
3496 | + * that here. */ | |
3497 | + setcursor(); | |
3498 | + out_flush(); | |
3499 | +#ifdef FEAT_GUI | |
3500 | + if (gui.in_use) | |
3501 | + gui_update_cursor(FALSE, FALSE); | |
3502 | +#endif | |
3503 | + | |
3495 | 3504 | return res; |
3496 | 3505 | } |
3497 | 3506 |