Mercurial > vim
comparison runtime/doc/editing.txt @ 819:23f82b5d2814 v7.0c10
updated for version 7.0c10
author | vimboss |
---|---|
date | Wed, 05 Apr 2006 20:41:53 +0000 |
parents | 9f345c48220b |
children | 57c7403f6599 |
comparison
equal
deleted
inserted
replaced
818:1f929f3ca806 | 819:23f82b5d2814 |
---|---|
1 *editing.txt* For Vim version 7.0c. Last change: 2006 Mar 06 | 1 *editing.txt* For Vim version 7.0c. Last change: 2006 Apr 02 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
420 | 420 |
421 *++opt* *[++opt]* | 421 *++opt* *[++opt]* |
422 The [++opt] argument can be used to force the value of 'fileformat', | 422 The [++opt] argument can be used to force the value of 'fileformat', |
423 'fileencoding' or 'binary' to a value for one command, and to specify the | 423 'fileencoding' or 'binary' to a value for one command, and to specify the |
424 behavior for bad characters. The form is: > | 424 behavior for bad characters. The form is: > |
425 ++{optname} | |
426 Or: > | |
425 ++{optname}={value} | 427 ++{optname}={value} |
426 | 428 |
427 Where {optname} is one of: *++ff* *++enc* *++bin* *++nobin* | 429 Where {optname} is one of: *++ff* *++enc* *++bin* *++nobin* *++edit* |
428 ff or fileformat overrides 'fileformat' | 430 ff or fileformat overrides 'fileformat' |
429 enc or encoding overrides 'fileencoding' | 431 enc or encoding overrides 'fileencoding' |
430 bin or binary sets 'binary' | 432 bin or binary sets 'binary' |
431 nobin or nobinary resets 'binary' | 433 nobin or nobinary resets 'binary' |
432 bad specifies behavior for bad characters | 434 bad specifies behavior for bad characters |
435 edit for |:read| only: keep option values as if editing | |
436 a file | |
433 | 437 |
434 {value} cannot contain white space. It can be any valid value for these | 438 {value} cannot contain white space. It can be any valid value for these |
435 options. Examples: > | 439 options. Examples: > |
436 :e ++ff=unix | 440 :e ++ff=unix |
437 This edits the same file again with 'fileformat' set to "unix". > | 441 This edits the same file again with 'fileformat' set to "unix". > |
895 the filename of the current buffer to {file}. The | 899 the filename of the current buffer to {file}. The |
896 previous name is used for the alternate file name. | 900 previous name is used for the alternate file name. |
897 The [!] is needed to overwrite an existing file. | 901 The [!] is needed to overwrite an existing file. |
898 When 'filetype' is empty filetype detection is done | 902 When 'filetype' is empty filetype detection is done |
899 with the new name, before the file is written. | 903 with the new name, before the file is written. |
904 When the write was successful 'readonly' is reset. | |
900 {not in Vi} | 905 {not in Vi} |
901 | 906 |
902 *:up* *:update* | 907 *:up* *:update* |
903 :[range]up[date][!] [>>] [file] | 908 :[range]up[date][!] [>>] [file] |
904 Like ":write", but only write when the buffer has been | 909 Like ":write", but only write when the buffer has been |