summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-02-12 20:14:01 +0100
committerBram Moolenaar <Bram@vim.org>2012-02-12 20:14:01 +0100
commit60542ac9fd078d5f87fa5f91131432d8a316bb0f (patch)
tree662ab1896c75b1419af0d0c182df62a3cf1600bb /runtime
parentbbc98db7c45ed9c8a6bbc7e2ac7c67180ccbab16 (diff)
downloadvim-git-60542ac9fd078d5f87fa5f91131432d8a316bb0f.tar.gz
updated for version 7.3.442v7.3.442
Problem: Still read modelines for ":doautocmd". Solution: Move check for <nomodeline> to separate function.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/autocmd.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 1e2bc7737..8e1e94ba2 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -1072,6 +1072,14 @@ option will not cause any commands to be executed.
argument is included, Vim executes only the matching
autocommands for that group. Note: if you use an
undefined group name, Vim gives you an error message.
+ *<nomodeline>*
+ After applying the autocommands the modelines are
+ processed, so that their settings overrule the
+ settings from autocommands, like what happens when
+ editing a file. This is skipped when the <nomodeline>
+ argument is present. You probably want to use
+ <nomodeline> for events that are not used when loading
+ a buffer, such as |User|.
*:doautoa* *:doautoall*
:doautoa[ll] [<nomodeline>] [group] {event} [fname]
@@ -1085,12 +1093,6 @@ option will not cause any commands to be executed.
This command is intended for autocommands that set
options, change highlighting, and things like that.
- After applying the autocommands the modelines are
- processed, so that their settings overrule the
- settings from autocommands, like what happens when
- editing a file. This is skipped when the <nomodeline>
- argument is present.
-
==============================================================================
10. Using autocommands *autocmd-use*