Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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
share|improve this answer
Thanks @Chris Johnson! – Kevin Gurney Jul 7 '11 at 3:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .