Getcwd returns the current working directory.
getcwd返回当前工作目录。
We can save the starting location by calling getcwd before we change our working directory.
我们可以通过在改变工作目录之前调用getcwd函数保存开始位置。
For example, you could use Vim's built-in getcwd function to create an abbreviation for the current working directory, like so.
比如,可以使用Vim的内置getcwd函数为当前的工作目录创建缩写,如下所示。
应用推荐