14 lines
244 B
VimL
14 lines
244 B
VimL
vim9script
|
|
|
|
export def IsOsWindows(): bool
|
|
return has('win32')
|
|
enddef
|
|
|
|
export def GetFileSeparator(): string
|
|
return IsOsWindows() ? '\' : '/'
|
|
enddef
|
|
|
|
export def GetLineSeparator(): string
|
|
return IsOsWindows() ? "\r\n" : "\n"
|
|
enddef
|