comparison runtime/doc/eval.txt @ 13229:93efa1de7abb v8.0.1489

patch 8.0.1489: there is no easy way to get the global directory commit https://github.com/vim/vim/commit/5459129af2a832a027a1e7ca2d6177c26647d64f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 9 20:53:59 2018 +0100 patch 8.0.1489: there is no easy way to get the global directory Problem: There is no easy way to get the global directory, esp. if some windows have a local directory. Solution: Make getcwd(-1) return the global directory. (Andy Massimino, closes #2606)
author Christian Brabandt <cb@256bit.org>
date Fri, 09 Feb 2018 21:00:06 +0100
parents 371ceeebbdaa
children 167a030448fa
comparison
equal deleted inserted replaced
13228:8ece1b2f3081 13229:93efa1de7abb
4482 The result is a String, which is the name of the current 4482 The result is a String, which is the name of the current
4483 working directory. 4483 working directory.
4484 Without arguments, for the current window. 4484 Without arguments, for the current window.
4485 4485
4486 With {winnr} return the local current directory of this window 4486 With {winnr} return the local current directory of this window
4487 in the current tab page. 4487 in the current tab page. {winnr} can be the window number or
4488 the |window-ID|.
4489 If {winnr} is -1 return the name of the global working
4490 directory. See also |haslocaldir()|.
4491
4488 With {winnr} and {tabnr} return the local current directory of 4492 With {winnr} and {tabnr} return the local current directory of
4489 the window in the specified tab page. 4493 the window in the specified tab page.
4490 {winnr} can be the window number or the |window-ID|.
4491 Return an empty string if the arguments are invalid. 4494 Return an empty string if the arguments are invalid.
4492 4495
4493 getfsize({fname}) *getfsize()* 4496 getfsize({fname}) *getfsize()*
4494 The result is a Number, which is the size in bytes of the 4497 The result is a Number, which is the size in bytes of the
4495 given file {fname}. 4498 given file {fname}.