diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-01-20 23:02:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-01-20 23:02:51 +0000 |
commit | 2d3f489e09a1cc50f5b7601eff568a4eb87fbd51 (patch) | |
tree | a29e0aabb8e2ee8bba220b843d536dca3fdf2100 /runtime/doc/editing.txt | |
parent | 8ada17c4d9d783b370d081c2a947ea1350cc8338 (diff) | |
download | vim-git-2d3f489e09a1cc50f5b7601eff568a4eb87fbd51.tar.gz |
updated for version 7.0183
Diffstat (limited to 'runtime/doc/editing.txt')
-rw-r--r-- | runtime/doc/editing.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt index e850dac01..25dc1a674 100644 --- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -1,4 +1,4 @@ -*editing.txt* For Vim version 7.0aa. Last change: 2005 Dec 13 +*editing.txt* For Vim version 7.0aa. Last change: 2006 Jan 20 VIM REFERENCE MANUAL by Bram Moolenaar @@ -155,11 +155,14 @@ Technical: On the Amiga you can use 30 characters for a file name. But on an When you started editing without giving a file name, "No File" is displayed in messages. If the ":write" command is used with a file name argument, the file name for the current file is set to that file name. This only happens when -the 'F' flag is included in 'cpoptions' (by default it is included). This is -useful when entering text in an empty buffer and then writing it to a file. -If 'cpoptions' contains the 'f' flag (by default it is NOT included) the file -name is set for the ":read file" command. This is useful when starting Vim -without an argument and then doing ":read file" to start editing a file. +the 'F' flag is included in 'cpoptions' (by default it is included) |cpo-F|. +This is useful when entering text in an empty buffer and then writing it to a +file. If 'cpoptions' contains the 'f' flag (by default it is NOT included) +|cpo-f| the file name is set for the ":read file" command. This is useful +when starting Vim without an argument and then doing ":read file" to start +editing a file. +When the file name was set and 'filetype' is empty the filetype detection +autocommands will be triggered. *not-edited* Because the file name was set without really starting to edit that file, you are protected from overwriting that file. This is done by setting the @@ -874,6 +877,8 @@ used, for example, when the write fails and you want to try again later with the filename of the current buffer to {file}. The previous name is used for the alternate file name. The [!] is needed to overwrite an existing file. + When 'filetype' is empty filetype detection is done + with the new name, before the file is written. {not in Vi} *:up* *:update* |