diff options
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/builtin.txt | 4 | ||||
| -rw-r--r-- | runtime/doc/intro.txt | 2 |
2 files changed, 5 insertions, 1 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. diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt index 0074dc0733..51e823b75f 100644 --- a/runtime/doc/intro.txt +++ b/runtime/doc/intro.txt @@ -565,7 +565,7 @@ gQ Switch to Ex mode. This is like typing ":" commands one after another, except: - You don't have to keep pressing ":". - The screen doesn't get updated after each command. - Use the ":vi" command |:visual| to exit this mode. + Use the `:vi` command (|:visual|) to exit this mode. ============================================================================== Window contents *window-contents* |