summaryrefslogtreecommitdiffstats
path: root/runtime/doc/usr_40.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-08-10 15:00:24 +0200
committerBram Moolenaar <Bram@vim.org>2013-08-10 15:00:24 +0200
commit3b1db36689ee9b3a49de1362c1678372263a01fe (patch)
tree690a508be01e936e11497ec7ecf6cb981d7feb80 /runtime/doc/usr_40.txt
parentb7512b79ce62b5dba75eb5768ec5f0d0fddb49ee (diff)
release version 7.4v7.4
Diffstat (limited to 'runtime/doc/usr_40.txt')
-rw-r--r--runtime/doc/usr_40.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/doc/usr_40.txt b/runtime/doc/usr_40.txt
index b4d2cc9974..b1108a5c33 100644
--- a/runtime/doc/usr_40.txt
+++ b/runtime/doc/usr_40.txt
@@ -1,4 +1,4 @@
-*usr_40.txt* For Vim version 7.4b. Last change: 2006 Jun 21
+*usr_40.txt* For Vim version 7.4. Last change: 2013 Aug 05
VIM USER MANUAL - by Bram Moolenaar
@@ -440,16 +440,16 @@ written. First you define a function: >
: read !date
:endfunction
-You want this function to be called each time, just before a file is written.
-This will make that happen: >
+You want this function to be called each time, just before a buffer is written
+to a file. This will make that happen: >
- :autocmd FileWritePre * call DateInsert()
+ :autocmd BufWritePre * call DateInsert()
-"FileWritePre" is the event for which this autocommand is triggered: Just
-before (pre) writing a file. The "*" is a pattern to match with the file
-name. In this case it matches all files.
+"BufWritePre" is the event for which this autocommand is triggered: Just
+before (pre) writing a buffer to a file. The "*" is a pattern to match with
+the file name. In this case it matches all files.
With this command enabled, when you do a ":write", Vim checks for any
-matching FileWritePre autocommands and executes them, and then it
+matching BufWritePre autocommands and executes them, and then it
performs the ":write".
The general form of the :autocmd command is as follows: >