Skip to main content
Module

x/denops_std/option/mod.ts>shellslash

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

When set, a forward slash is used when expanding file names. This is useful when a Unix-like shell is used instead of cmd.exe, pwsh.exe, or powershell.exe. Backward slashes can still be typed, but they are changed to forward slashes by Vim. Note that setting or resetting this option has no effect for some existing file names, thus this option needs to be set before opening any file for best results. This might change in the future. 'shellslash' only works when a backslash can be used as a path separator. To test if this is so use:

if exists('+shellslash')

Also see 'completeslash'.

(default off)

only for MS-Windows