Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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