Mercurial > vim
comparison runtime/doc/editing.txt @ 595:fea48f63efc8
updated for version 7.0169
author | vimboss |
---|---|
date | Tue, 13 Dec 2005 20:02:15 +0000 |
parents | d0d15b184c56 |
children | 7437be625546 |
comparison
equal
deleted
inserted
replaced
594:35cef95a6b76 | 595:fea48f63efc8 |
---|---|
1 *editing.txt* For Vim version 7.0aa. Last change: 2005 Jul 25 | 1 *editing.txt* For Vim version 7.0aa. Last change: 2005 Dec 13 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
396 :e `=tempname()` | 396 :e `=tempname()` |
397 The expression can contain just about anything, thus this can also be used to | 397 The expression can contain just about anything, thus this can also be used to |
398 avoid the special meaning of '"', '|', '%' and '#'. | 398 avoid the special meaning of '"', '|', '%' and '#'. |
399 | 399 |
400 *++opt* *[++opt]* | 400 *++opt* *[++opt]* |
401 The [++opt] argument can be used to force the value of 'fileformat' or | 401 The [++opt] argument can be used to force the value of 'fileformat', |
402 'fileencoding' to a value for one command. The form is: > | 402 'fileencoding' or 'binary' to a value for one command, and to specify the |
403 behavior for bad characters. The form is: > | |
403 ++{optname}={value} | 404 ++{optname}={value} |
404 | 405 |
405 Where {optname} is one of: *++ff* *++enc* *++bin* *++nobin* | 406 Where {optname} is one of: *++ff* *++enc* *++bin* *++nobin* |
406 ff or fileformat overrides 'fileformat' | 407 ff or fileformat overrides 'fileformat' |
407 enc or encoding overrides 'fileencoding' | 408 enc or encoding overrides 'fileencoding' |
408 bin or binary sets 'binary' | 409 bin or binary sets 'binary' |
409 nobin or nobinary resets 'binary' | 410 nobin or nobinary resets 'binary' |
411 bad specifies behavior for bad characters | |
410 | 412 |
411 {value} cannot contain white space. It can be any valid value for these | 413 {value} cannot contain white space. It can be any valid value for these |
412 options. Examples: > | 414 options. Examples: > |
413 :e ++ff=unix | 415 :e ++ff=unix |
414 This edits the same file again with 'fileformat' set to "unix". > | 416 This edits the same file again with 'fileformat' set to "unix". > |
415 | 417 |
416 :w ++enc=latin1 newfile | 418 :w ++enc=latin1 newfile |
417 This writes the current buffer to "newfile" in latin1 format. | 419 This writes the current buffer to "newfile" in latin1 format. |
418 | 420 |
421 There may be several ++opt arguments, separated by white space. They must all | |
422 appear before any |+cmd| argument. | |
423 | |
424 *++bad* | |
425 The argument of "++bad=" specifies what happens with characters that can't be | |
426 converted and illegal bytes. It can be one of three things: | |
427 ++bad=X A single-byte character that replaces each bad character. | |
428 ++bad=keep Keep bad characters without conversion. Note that this may | |
429 result in illegal bytes in your text! | |
430 ++bad=drop Remove the bad characters. | |
431 | |
432 The default is like "++bad=?": Replace each bad character with a question | |
433 mark. | |
434 | |
419 Note that when reading, the 'fileformat' and 'fileencoding' options will be | 435 Note that when reading, the 'fileformat' and 'fileencoding' options will be |
420 set to the used format. When writing this doesn't happen, thus a next write | 436 set to the used format. When writing this doesn't happen, thus a next write |
421 will use the old value of the option. Same for the 'binary' option. | 437 will use the old value of the option. Same for the 'binary' option. |
422 | 438 |
423 There may be several ++opt arguments, separated by white space. They must all | |
424 appear before any |+cmd| argument. | |
425 | 439 |
426 *+cmd* *[+cmd]* | 440 *+cmd* *[+cmd]* |
427 The [+cmd] argument can be used to position the cursor in the newly opened | 441 The [+cmd] argument can be used to position the cursor in the newly opened |
428 file, or execute any other command: | 442 file, or execute any other command: |
429 + Start at the last line. | 443 + Start at the last line. |