How to set working/current directory in Vim?
As already suggested, you can use autochdir, which will change to the directory of the file you opened, the other option is :cd mydirectory which will change the directory. This can be an absolute or relative path, so :cd .. will move up one level. Or you can use :cd %:h which will also change … Read more