ProjectTree in all tabs

18 views
Skip to first unread message

Gerhard Siegesmund

unread,
Dec 5, 2009, 4:28:09 PM12/5/09
to eclim...@googlegroups.com
Hello all

Just a small idea/question: Is it somehow possible to automatically open
the ProjectTree on all new tabs. I tend to have the ProjectTree open at
all times. But if editing several files at the same time, it's better to
open them in different tabs. Right now I have to open the ProjectTree by
hand if a new tab opens.

Maybe this is a vim-question, rather than an eclim-question. If
nevertheless someone has an idea (or a hint, where to look) on how to do
this, I would be very thankful.

Greetings

--
cu
--== Jerri ==--
Homepage: http://www.jerri.de/ ICQ: 54160208
Public PGP Key: http://www.jerri.de/jerris_public_key.asc

signature.asc

Eric Van Dewoestine

unread,
Dec 5, 2009, 4:54:45 PM12/5/09
to eclim...@googlegroups.com
On Sat, Dec 05, 2009 at 10:28:09PM +0100, Gerhard Siegesmund wrote:
> Hello all
>
> Just a small idea/question: Is it somehow possible to automatically open
> the ProjectTree on all new tabs. I tend to have the ProjectTree open at
> all times. But if editing several files at the same time, it's better to
> open them in different tabs. Right now I have to open the ProjectTree by
> hand if a new tab opens.
>
> Maybe this is a vim-question, rather than an eclim-question. If
> nevertheless someone has an idea (or a hint, where to look) on how to do
> this, I would be very thankful.

Adding the following to your vimrc will probably give you what you're
looking for:

let g:EclimProjectTreeAutoOpen = 1

For your usage you may also find this useful as well:

let g:EclimProjectTreeExpandPathOnOpen = 1

With that setting, opening a file on a new tab will result in the
project tree instance created for that tab auto expanding the path of
the newly opened file.

You can find the docs for these and some other settings in the eclim
docs[1].

Let me know if that helps get you the behavior you want or if you have
additional suggestions for improvement.

[1] http://eclim.org/vim/common/project.html#configuration

--
eric

Gerhard Siegesmund

unread,
Dec 5, 2009, 6:48:04 PM12/5/09
to eclim...@googlegroups.com
Hello Eric

> Adding the following to your vimrc will probably give you what you're
> looking for:
> let g:EclimProjectTreeAutoOpen = 1
> For your usage you may also find this useful as well:
> let g:EclimProjectTreeExpandPathOnOpen = 1

You are the best. This is exactly what I was looking for. It seems I
wasn't looking deep enough into the documentation. Sorry for that. I
will reread the documentation now. Seems there are a lot of things to be
found! I love eclim more and more! :)

signature.asc
Reply all
Reply to author
Forward
0 new messages