diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-17 10:47:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-17 10:47:20 +0100 |
commit | be4c8968456231560f17736bf04b4c265a9d7dac (patch) | |
tree | 4e6880d137af4a5405217acabea5280c59e11925 /runtime | |
parent | a062cd4ce58ba9aca6fdce443b014c9c0949ecde (diff) | |
download | rneovim-be4c8968456231560f17736bf04b4c265a9d7dac.tar.gz rneovim-be4c8968456231560f17736bf04b4c265a9d7dac.tar.bz2 rneovim-be4c8968456231560f17736bf04b4c265a9d7dac.zip |
DirChanged: set <amatch> (#5961)
Also:
- test that DirChanged is not recursive
- fix 'not trigger if :cd fails' test on Windows
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 320c821f21..180127cd52 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -273,10 +273,10 @@ Name triggered by ~ |VimLeave| before exiting Vim, after writing the shada file Various -|DirChanged| When the current working directory changed. +|DirChanged| after the |current-directory| was changed |FileChangedShell| Vim notices that a file changed since editing started -|FileChangedShellPost| After handling a file changed since editing started +|FileChangedShellPost| after handling a file changed since editing started |FileChangedRO| before making the first change to a read-only file |ShellCmdPost| after executing a shell command @@ -566,14 +566,10 @@ CursorMovedI After the cursor was moved in Insert mode. Not triggered when the popup menu is visible. Otherwise the same as CursorMoved. *DirChanged* -DirChanged When the current working directory was changed - using the |:cd| family of commands, - |nvim_set_current_dir()|, or on 'autochdir'. - The pattern must be * because its meaning may - change in the future. - It sets these |v:event| keys: - cwd: String (current working directory) - scope: String ("global", "tab", "window") +DirChanged After the |current-directory| was changed. + Sets these |v:event| keys: + cwd: current working directory + scope: "global", "tab", "window" Recursion is ignored. *FileAppendCmd* FileAppendCmd Before appending to a file. Should do the @@ -739,13 +735,12 @@ InsertCharPre When a character is typed in Insert mode, *TextYankPost* TextYankPost Just after a |yank| or |deleting| command, but not if the black hole register |quote_| is used nor - for |setreg()|. Pattern must be * because its - meaning may change in the future. + for |setreg()|. Pattern must be *. Sets these |v:event| keys: - operator - regcontents - regname - regtype + operator + regcontents + regname + regtype Recursion is ignored. It is not allowed to change the text |textlock|. *InsertEnter* |