diff options
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index b458679560..df5a636070 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -2367,6 +2367,10 @@ fnamemodify({fname}, {mods}) *fnamemodify()* /home/user/vim/vim/src < If {mods} is empty or an unsupported modifier is used then {fname} is returned. + When {fname} is empty then with {mods} ":h" returns ".", so + that `:cd` can be used with it. This is different from + expand('%:h') without a buffer name, which returns an empty + string. Note: Environment variables don't work in {fname}, use |expand()| first then. |