Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4484,10 +4484,13 @@ getcwd([{winnr} [, {tabnr}]]) Without arguments, for the current window. With {winnr} return the local current directory of this window - in the current tab page. + in the current tab page. {winnr} can be the window number or + the |window-ID|. + If {winnr} is -1 return the name of the global working + directory. See also |haslocaldir()|. + With {winnr} and {tabnr} return the local current directory of the window in the specified tab page. - {winnr} can be the window number or the |window-ID|. Return an empty string if the arguments are invalid. getfsize({fname}) *getfsize()*