So when I want to create a new file by using the :e command I don\'t want to specify the whole path, just the new filename. Can it be done?
Adding this to my .vimrc automatically changes Vim's working dir to the current file:
.vimrc
autocmd BufEnter * silent! :lcd%:p:h