Skip to main content
Module

x/denops_std/option/mod.ts>autochdir

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

When on, Vim will change the current working directory whenever you open a file, switch buffers, delete a buffer or open/close a window. It will change to the directory containing the file which was opened or selected. When a buffer has no name it also has no directory, thus the current directory won't change when navigating to it. Note: When this option is on some plugins may not work.

(default off)

only available when compiled with it, use exists("+autochdir") to check