Skip to main content
Module

x/denops_std/option/mod.ts>cdpath

📚 Standard module for denops.vim
Go to Latest
variable cdpath
import { cdpath } from "https://deno.land/x/denops_std@v3.8.2/option/mod.ts";

{not available when compiled without the |+file_in_path| feature} This is a list of directories which will be searched when using the |:cd|, |:tcd| and |:lcd| commands, provided that the directory being searched for has a relative path, not an absolute part starting with "/", "./" or "../", the 'cdpath' option is not used then. The 'cdpath' option's value has the same form and semantics as |'path'|. Also see |file-searching|. The default value is taken from $CDPATH, with a "," prepended to look in the current directory first. If the default value taken from $CDPATH is not what you want, include a modified version of the following command in your vimrc file to override it: > :let &cdpath = ',' . substitute(substitute($CDPATH, '[, ]', '\\0', 'g'), ':', ',', 'g') < This option cannot be set from a |modeline| or in the |sandbox|, for security reasons. (parts of 'cdpath' can be passed to the shell to expand file names).