summaryrefslogtreecommitdiff
path: root/runtime/doc/editing.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-09-02 19:12:26 +0000
committerBram Moolenaar <Bram@vim.org>2004-09-02 19:12:26 +0000
commitd4755bb0e04fca334675f1503bd6474b017a9bba (patch)
tree8be8df859191e78ee9eef80d3b341fd5d0c1b81b /runtime/doc/editing.txt
parent269ec658f0fad22b2bf9f71b06a4e6e10277f0e5 (diff)
downloadvim-d4755bb0e04fca334675f1503bd6474b017a9bba.zip
updated for version 7.0014
Diffstat (limited to 'runtime/doc/editing.txt')
-rw-r--r--runtime/doc/editing.txt26
1 files changed, 18 insertions, 8 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt
index 4f56dfe2f..42fa8ba4e 100644
--- a/runtime/doc/editing.txt
+++ b/runtime/doc/editing.txt
@@ -1,4 +1,4 @@
-*editing.txt* For Vim version 7.0aa. Last change: 2004 Jul 04
+*editing.txt* For Vim version 7.0aa. Last change: 2004 Aug 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -29,16 +29,26 @@ Editing a file with Vim means:
*current-file*
As long as you don't write the buffer, the original file remains unchanged.
If you start editing a file (read a file into the buffer), the file name is
-remembered as the "current file name".
+remembered as the "current file name". This is also known as the name of the
+current buffer.
*alternate-file*
If there already was a current file name, then that one becomes the alternate
-file name. All file names are remembered in the file list. When you enter a
-file name, for editing (e.g., with ":e filename") or writing (e.g., with (:w
-file name"), the file name is added to the list. You can use this list to
-remember which files you edited and to quickly switch from one file to
-another with the CTRL-^ command (e.g., to copy text). First type the number
-of the file and then hit CTRL-^. {Vi: only one alternate file name}
+file name. It can later be used with "#" on the command line |:_#|. However,
+the alternate file name is not changed when |:keepalt| is used.
+
+ *:keepalt* *:keepa*
+:keepalt {cmd} Execute {cmd} while keeping the current alternate file
+ name. Note that commands invoked indirectly (e.g.,
+ with a function) may still set the alternate file
+ name. {not in Vi}
+
+All file names are remembered in the file list. When you enter a file name,
+for editing (e.g., with ":e filename") or writing (e.g., with (:w file name"),
+the file name is added to the list. You can use this list to remember which
+files you edited and to quickly switch from one file to another with the
+CTRL-^ command (e.g., to copy text). First type the number of the file and
+then hit CTRL-^. {Vi: only one alternate file name}
CTRL-G or *CTRL-G* *:f* *:fi* *:file*
:f[ile] Prints the current file name (as typed), the