Mercurial > vim
diff runtime/doc/builtin.txt @ 29403:03e3b0034e31
Update runtime files
Commit: https://github.com/vim/vim/commit/5ed11535e0695163cec71033b98bb97356cf0113
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 6 13:18:11 2022 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 06 Jul 2022 14:30:05 +0200 |
parents | f8116058ca76 |
children | 67f31c24291b |
line wrap: on
line diff
--- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -2872,6 +2872,10 @@ fnamemodify({fname}, {mods}) *fnamemo /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.