How can I change my working directory to the path of the file that I currently have open?
Example
- current working directory is $HOME
- vim /tmp/test.log
- ???
- CWD is now /tmp/
How can I change my working directory to the path of the file that I currently have open?
Example