I can open a gvim session and drag&drop a folder while holding the shift key to change pwd to the dropped folder. This works fine but I was wondering if it’s possible to do the same without first opening a gvim (I can drop a folder on a gvim icon on my desktop to start a gvim session with the given folder but it does not change the working directory even when I hold shift key).
If relevant, I’m using an ubuntu system with unity desktop and also NERDTree plugin.
Add this to your
.vimrc: