How to change VIM’s working directory
To change VIM’s current working directory, type:
:cd NEW_DIRECTORY
To display the current working directory, type:
:pwd
To change the working directory to that of the file that is open at the moment, type:
:cd %:h
Tags: change working directory, directory, editor, Linux, vi, vim, working directory