aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2017-01-13 11:03:43 +0100
committerMarco Hinz <mh.codebro@gmail.com>2017-01-13 15:30:01 +0100
commit20867e63199f4660b3cd3941efecd085e5e32463 (patch)
tree142afdba16b2d8f3a4502e5405100581574171c8
parenta05779aa1c13149c26678419890653f15fd00127 (diff)
downloadrneovim-20867e63199f4660b3cd3941efecd085e5e32463.tar.gz
rneovim-20867e63199f4660b3cd3941efecd085e5e32463.tar.bz2
rneovim-20867e63199f4660b3cd3941efecd085e5e32463.zip
Document DirChanged
-rw-r--r--runtime/doc/autocmd.txt12
-rw-r--r--runtime/doc/vim_diff.txt1
2 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 090c216fcb..9074141d77 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -273,6 +273,8 @@ Name triggered by ~
|VimLeave| before exiting Vim, after writing the shada file
Various
+|DirChanged| When the current working directory changed.
+
|FileChangedShell| Vim notices that 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
@@ -562,6 +564,16 @@ CursorMoved After the cursor was moved in Normal or Visual
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")
+ Recursion is ignored.
*FileAppendCmd*
FileAppendCmd Before appending to a file. Should do the
appending to the file. Use the '[ and ']
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 7c9d383a01..ae0bd5a867 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -129,6 +129,7 @@ Functions:
|msgpackdump()|, |msgpackparse()| provide msgpack de/serialization
Events:
+ |DirChanged|
|TabNewEntered|
|TermClose|
|TermOpen|