Mercurial > vim
comparison runtime/doc/editing.txt @ 31:6f8b1be930a6
updated for version 7.0019
author | vimboss |
---|---|
date | Tue, 12 Oct 2004 19:54:52 +0000 |
parents | 726bdc53fa49 |
children | 410fa1a31baf |
comparison
equal
deleted
inserted
replaced
30:e4eba16b992d | 31:6f8b1be930a6 |
---|---|
1 *editing.txt* For Vim version 7.0aa. Last change: 2004 Oct 09 | 1 *editing.txt* For Vim version 7.0aa. Last change: 2004 Oct 12 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1030 :[range]w[rite] !{cmd} Execute {cmd} with [range] lines as standard input | 1030 :[range]w[rite] !{cmd} Execute {cmd} with [range] lines as standard input |
1031 (note the space in front of the '!'). {cmd} is | 1031 (note the space in front of the '!'). {cmd} is |
1032 executed like with ":!{cmd}", any '!' is replaced with | 1032 executed like with ":!{cmd}", any '!' is replaced with |
1033 the previous command |:!|. | 1033 the previous command |:!|. |
1034 | 1034 |
1035 The default [range] for the ":w" command is the whole buffer (1,$). | 1035 The default [range] for the ":w" command is the whole buffer (1,$). If you |
1036 write the whole buffer, it is no longer considered changed. Also when you | |
1037 write it to a different file with ":w somefile"! | |
1038 | |
1036 If a file name is given with ":w" it becomes the alternate file. This can be | 1039 If a file name is given with ":w" it becomes the alternate file. This can be |
1037 used, for example, when the write fails and you want to try again later with | 1040 used, for example, when the write fails and you want to try again later with |
1038 ":w #". This can be switched off by removing the 'A' flag from the | 1041 ":w #". This can be switched off by removing the 'A' flag from the |
1039 'cpoptions' option. | 1042 'cpoptions' option. |
1040 | 1043 |