Mercurial > vim
comparison runtime/doc/editing.txt @ 1121:e63691e7c504
updated for version 7.1a
author | vimboss |
---|---|
date | Sat, 05 May 2007 17:54:07 +0000 |
parents | 4bac29d27e2f |
children | b7ad1c609161 |
comparison
equal
deleted
inserted
replaced
1120:e6db096b07a1 | 1121:e63691e7c504 |
---|---|
1 *editing.txt* For Vim version 7.0. Last change: 2006 Apr 30 | 1 *editing.txt* For Vim version 7.1a. Last change: 2006 Oct 10 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
370 allow file names with embedded spaces (like MS-Windows and the Amiga). | 370 allow file names with embedded spaces (like MS-Windows and the Amiga). |
371 Example: The command ":e Long File Name " will edit the file "Long File | 371 Example: The command ":e Long File Name " will edit the file "Long File |
372 Name". When using a command that accepts more than one file name (like ":next | 372 Name". When using a command that accepts more than one file name (like ":next |
373 file1 file2") embedded spaces must be escaped with a backslash. | 373 file1 file2") embedded spaces must be escaped with a backslash. |
374 | 374 |
375 *wildcard* | 375 *wildcard* *wildcards* |
376 Wildcards in {file} are expanded. Which wildcards are supported depends on | 376 Wildcards in {file} are expanded. Which wildcards are supported depends on |
377 the system. These are the common ones: | 377 the system. These are the common ones: |
378 ? matches one character | 378 ? matches one character |
379 * matches anything, including nothing | 379 * matches anything, including nothing |
380 ** matches anything, including nothing, recurses into directories | 380 ** matches anything, including nothing, recurses into directories |
847 | 847 |
848 Note: When the 'write' option is off, you are not able to write any file. | 848 Note: When the 'write' option is off, you are not able to write any file. |
849 | 849 |
850 *:w* *:write* | 850 *:w* *:write* |
851 *E502* *E503* *E504* *E505* | 851 *E502* *E503* *E504* *E505* |
852 *E512* *E514* *E667* | 852 *E512* *E514* *E667* *E796* |
853 :w[rite] Write the whole buffer to the current file. This is | 853 :w[rite] Write the whole buffer to the current file. This is |
854 the normal way to save changes to a file. It fails | 854 the normal way to save changes to a file. It fails |
855 when the 'readonly' option is set or when there is | 855 when the 'readonly' option is set or when there is |
856 another reason why the file can't be written. | 856 another reason why the file can't be written. |
857 | 857 |
1148 If you want to always use ":confirm", set the 'confirm' option. | 1148 If you want to always use ":confirm", set the 'confirm' option. |
1149 | 1149 |
1150 *:browse* *:bro* *E338* *E614* *E615* *E616* *E578* | 1150 *:browse* *:bro* *E338* *E614* *E615* *E616* *E578* |
1151 :bro[wse] {command} Open a file selection dialog for an argument to | 1151 :bro[wse] {command} Open a file selection dialog for an argument to |
1152 {command}. At present this works for |:e|, |:w|, | 1152 {command}. At present this works for |:e|, |:w|, |
1153 |:r|, |:saveas|, |:sp|, |:mkexrc|, |:mkvimrc| and | 1153 |:r|, |:saveas|, |:sp|, |:mkexrc|, |:mkvimrc|, |
1154 |:mksession|. | 1154 |:mksession|, |:split|, |:vsplit|, and |:tabe|. |
1155 {only in Win32, Athena, Motif, GTK and Mac GUI} | 1155 {only in Win32, Athena, Motif, GTK and Mac GUI} |
1156 When ":browse" is not possible you get an error | 1156 When ":browse" is not possible you get an error |
1157 message. If the |+browse| feature is missing or the | 1157 message. If the |+browse| feature is missing or the |
1158 {command} doesn't support browsing, the {command} is | 1158 {command} doesn't support browsing, the {command} is |
1159 executed without a dialog. | 1159 executed without a dialog. |
1467 11. File Searching *file-searching* | 1467 11. File Searching *file-searching* |
1468 | 1468 |
1469 {not available when compiled without the |+path_extra| feature} | 1469 {not available when compiled without the |+path_extra| feature} |
1470 | 1470 |
1471 The file searching is currently used for the 'path', 'cdpath' and 'tags' | 1471 The file searching is currently used for the 'path', 'cdpath' and 'tags' |
1472 options. There are three different types of searching: | 1472 options, for |finddir()| and |findfile()|. |
1473 | |
1474 There are three different types of searching: | |
1473 | 1475 |
1474 1) Downward search: *starstar* | 1476 1) Downward search: *starstar* |
1475 Downward search uses the wildcards '*', '**' and possibly others | 1477 Downward search uses the wildcards '*', '**' and possibly others |
1476 supported by your operating system. '*' and '**' are handled inside Vim, so | 1478 supported by your operating system. '*' and '**' are handled inside Vim, so |
1477 they work on all operating systems. | 1479 they work on all operating systems. |