diff options
author | Bakudankun <bakudankun@gmail.com> | 2021-12-11 12:28:08 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-11 12:28:08 +0000 |
commit | 29f3a4591528130fded3fe1d63d74bcf22ab4f6c (patch) | |
tree | fced5b9da43f96ace4ff4ed360fad2b4046105ac /runtime/optwin.vim | |
parent | 205f29c3e9b895dbaa4f738046da455a93c3812a (diff) |
patch 8.2.3780: ":cd" works differently on MS-Windowsv8.2.3780
Problem: ":cd" works differently on MS-Windows.
Solution: Add the 'cdhome' option. (closes #9324)
Diffstat (limited to 'runtime/optwin.vim')
-rw-r--r-- | runtime/optwin.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/optwin.vim b/runtime/optwin.vim index 1b826c765b..38bc87ecad 100644 --- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -260,6 +260,10 @@ call <SID>OptionG("sect", §) call <SID>AddOption("path", gettext("list of directory names used for file searching")) call append("$", "\t" .. s:global_or_local) call <SID>OptionG("pa", &pa) +if exists("+cdhome") + call <SID>AddOption("cdhome", gettext("change directory to the home directory by :cd")) + call <SID>BinOptionG("cdh", &cdh) +endif call <SID>AddOption("cdpath", gettext("list of directory names used for :cd")) call <SID>OptionG("cd", &cd) if exists("+autochdir") |