On 2012-11-21 07:03:12, Geeb wrote:
> Hi!
> Firstly thanks for the Eclim project - I really appreciate being able to
> use the features of Eclipse and Vim simultaneously!
>
> Here's my question:
> I like the NerdTree <
http://www.vim.org/scripts/script.php?script_id=1658> tree browser
> more the Eclim's inbuilt Project Tree - essentially because it doesn't
> indent the sub-dir branches as much and use so much of the screen when deep
> in a dir structure. (My Java packages have long names!)
>
> What I would like is a ":ProjectSelect myProj" command in eclim, that just
> focuses the window on the project (with tab completion for project names in
> the working dir) that works like :ProjectTab, but doesn't open the Project
> Tree, allowing me to fire up NerdTree instead.
>
> Maybe there is a way of doing this already - please correct me if I'm
> missing something!
>
> Thanks.
>
The latest version of eclim now has the ability to disable the auto
opening of the project tree when running :ProjectTab[1]
let g:EclimProjectTabTreeAutoOpen = 0
You can combine that with a custom command to auto open nerd tree
instead:
command -nargs=1 -bang
\ -complete=customlist,eclim#project#util#CommandCompleteProject
\ ProjectSelect :call <SID>ProjectSelect('<args>')
function s:ProjectSelect(project)
exec 'ProjectTab ' . a:project
NerdTree
endfunction
[1]
http://eclim.org/vim/core/project.html#projecttab
--
eric