Go to the Previous Directory in Vim Jul 1, 2017 • When I open a file and I am done with it. I often want to go back to the previous directory. I usually do a :w and then :q. Vim Command to Go to the Previous Directory If you want to go to the previous directory do :Ex Related Posts Vim Math Symbols My vimrc config file Vim Stuck in Insert Mode Install a Plugin in Vim Cpp Indent Vim