Thursday, June 6, 2013

Re: Vim taking an awfully long time to startup each time

On Thursday, June 6, 2013 12:53:09 PM UTC-4, Ben Fritz wrote:
> On Thursday, June 6, 2013 11:45:42 AM UTC-5, Paul Isambert wrote:
>
> > Jean-Marcel Belmont <marcelbelmont@gmail.com> a écrit:
>
> >
>
> > > On Thursday, June 6, 2013 11:20:09 AM UTC-4, Paul Isambert wrote:
>
> >
>
> >
>
> >
>
> > [snip]
>
> >
>
> >
>
> >
>
> > > > Just try starting Vim without eclim and see if that helps.
>
> >
>
> > >
>
> >
>
> > > Yep that plugin was the cause of the slow startup, now vim starts in a few seconds. Thank you.
>
> >
>
> >
>
> >
>
> > Which is still quite slow, actually (at least to me). My Vim starts in
>
> >
>
> > 80ms and my Gvim in 700ms. Perhaps you should make sure you're really
>
> >
>
> > using all those plugins :)
>
> >
>
>
>
> The main culprit was eclim as you found, but I noticed you also have what look like filetype-specific plugins (like c.vim) in your plugin directory, so those will always load even for HTML files. You probably should clean that out and move stuff to ftplugin as needed.
>
>
>
> For Eclim, do you have a whole ton of projects in your workspace in Eclipse? I noticed a recent commit to Eclim that fixes performance issues related to having a lot of projects, found in an XML file if I recall correctly.

I actually never really used eclim that often so I basically deleted it from ~/.vim directory. You had a suggestion to move files in my ~/.vim/plugin directory to ~/.vim/ftplugin directory
Here is the contents of my plugin directory right now.
LargeFile.vim SingleCompile.vim c.vim cppcheck.vim libList.vim remoteOpen.vim txtfmt.vim vcssvk.vim
NERD_tree.vim SyntaxFolds.vim clang filebrowser.vim libclang.py screen.vim vcsbzr.vim vcssvn.vim
NERD_tree_ACK.vim a.vim clang.vim fuf.vim mathematic.vim showmarks.vim vcscommand.vim vtreeexplorer.vim
RemoveFile.vim ack.vim clang_complete.vim godoc.vim perl-support.vim sqlcomplete.vim vcscvs.vimSQLUtilities.vim acp.vim cocoa.vim imaps.vim project.vim supertab.vim vcsgit.vim
SearchComplete.vim bufexplorer.vim conque_term.vim l9.vim python_fn.vim surround.vim vcshg.vim
which ones would you suggest to put in ftplugin directory.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: