Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>op.cdpath

Dark deno-powered completion framework for neovim/Vim
Go to Latest
variable op.cdpath
import { op } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { cdpath } = op;

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).

(default: equivalent to $CDPATH or ",,")

type

GlobalOption<string>