Mercurial > vim
diff runtime/doc/autocmd.txt @ 13482:9eebe457eb3c
Update runtime files. Convert a couple of help files to utf-8.
commit https://github.com/vim/vim/commit/98ef233e14faaaf42e0342da1803d493ce0337b2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 18 14:44:37 2018 +0100
Update runtime files. Convert a couple of help files to utf-8.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 18 Mar 2018 15:00:07 +0100 |
parents | 9f06f7aca74c |
children | a62eeee5f116 |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 8.0. Last change: 2018 Mar 05 +*autocmd.txt* For Vim version 8.0. Last change: 2018 Mar 15 VIM REFERENCE MANUAL by Bram Moolenaar @@ -56,6 +56,8 @@ 2. Defining autocommands *autocmd-def Add {cmd} to the list of commands that Vim will execute automatically on {event} for a file matching {pat} |autocmd-patterns|. + Note: A quote character is seen as argument to the + :autocmd and won't start a comment. Vim always adds the {cmd} after existing autocommands, so that the autocommands execute in the order in which they were given. See |autocmd-nested| for [nested]. @@ -91,7 +93,8 @@ will appear twice. To avoid this, defin that you can easily clear them: > augroup vimrc - autocmd! " Remove all vimrc autocommands + " Remove all vimrc autocommands + autocmd! au BufNewFile,BufRead *.html so <sfile>:h/html.vim augroup END @@ -145,6 +148,8 @@ 3. Removing autocommands *autocmd-rem plugins, syntax highlighting, etc. :au[tocmd]! [group] Remove ALL autocommands. + Note: a quote will be seen as argument to the :autocmd + and won't start a comment. Warning: You should normally not do this without a group, it breaks plugins, syntax highlighting, etc. @@ -329,10 +334,6 @@ Name triggered by ~ |CmdlineEnter| after the cursor moves to the command line |CmdlineLeave| before the cursor leaves the command line -|CmdlineChanged| after a change was made to the command-line text -|CmdlineEnter| after the cursor moves to the command line -|CmdlineLeave| before the cursor leaves the command line - |InsertEnter| starting Insert mode |InsertChange| when typing <Insert> while in Insert or Replace mode |InsertLeave| when leaving Insert mode