summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-01 16:26:19 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-01 16:26:19 +0200
commit950587242cad52d067a15f0f0c83528a28f75731 (patch)
treeff69b30a48c1bca712733f8ad48944d79de2e74e /runtime
parent6c9ba0428041d5316871245be38c13faa0107026 (diff)
downloadvim-git-950587242cad52d067a15f0f0c83528a28f75731.tar.gz
patch 8.2.0876: :pwd does not give a hint about the scope of the directoryv8.2.0876
Problem: :pwd does not give a hint about the scope of the directory Solution: Make ":verbose pwd" show the scope. (Takuya Fujiwara, closes #5469)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/editing.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt
index f6e3810d8..f33ffb995 100644
--- a/runtime/doc/editing.txt
+++ b/runtime/doc/editing.txt
@@ -1338,6 +1338,21 @@ present in 'cpoptions' and "!" is not used in the command.
*:pw* *:pwd* *E187*
:pw[d] Print the current directory name.
Also see |getcwd()|.
+ *:pwd-verbose*
+ When 'verbose' is non-zero, |:pwd| will also display
+ what scope the current directory was set. Example: >
+
+ " Set by :cd
+ :verbose pwd
+ [global] /path/to/current
+
+ " Set by :lcd
+ :verbose pwd
+ [window] /path/to/current
+
+ " Set by :tcd
+ :verbose pwd
+ [tabpage] /path/to/current
So long as no |:lcd| or |:tcd| command has been used, all windows share the
same current directory. Using a command to jump to another window doesn't