I have added the line:

:browse open

to my vimrc file, but have been unsuccessful in getting GVim to open a file browser starting in a specified directory. In particular, I would like to know if it is possible to have GVim open up the file browser in my home directory on Ubuntu 11.04.

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

You can use :cd to have Vim always change to your home directory (e.g. before your :browse command).

For example, in your .vimrc (or even better, in your .gvimrc (since :browse only works in GUI mode)):

⋮
cd           " defaults to HOME
browse open
link|improve this answer
Thanks @Chris Johnson! – Kevin Gurney Jul 7 '11 at 3:46
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.