How to improve performance with Vim and Eclipse for PHP5.3 projects (possibly using Eclim integration with Zend Studio)

I always try to increase my productivity in application development and over the past few years, I can say that I have taken good steps to increase this productivity, but I still think that I need more tools or methods. I need to edit and learn touch input faster (currently in the process), and so I need to go to Vim. For more than a year, I crashed Windows and switched to Linux (more precisely, Ubuntu), and I use the Zend Studio IDE in conjunction with Aptana Studio to develop OO PHP5.3 websites. Although the IDE does everything I need from the IDE (which I will list shortly), it lacks the editing mode that Vim will give.

So my question is: how would I have all the same “killer features” that I already have in this IDE in Vim?

Here is an extensive list of features that I need to keep my performance at the highest level for me:

  • Code completion for PHP5.3, not just PHP5, not just PHP functions, but any libraries that are added to the build path, such as Zend Framework and my own library.

  • Formatting the code, I do not use it much except XML files, but this is what I will need in the near future, since I will start to lead more people in my company, and formatters will help maintain the coherence of the code.

  • I am using the Oxygen XML editor in Zend Studio (eclipse) to edit the Docbook XML technical documentation. This has already proved to me a great quality, and I would like to keep it.

  • The syntax check for any file extensions that can be used on the Internet will mainly be PHP5.3 syntax, html syntax (not so important), CSS, Javascript (so I have Aptana Studio integrated with Zend Studio, their editor javascript does a great job with jQuery support)

  • Maybe git integration like EGit (eclipse plugin)? Not required, but a good addon.

  • Debugging functions (already using it through ZendDebugger)

  • Powerful file search

I know this is a lot, but I already have it all in my IDE, and as I said, it seems to me that I need to switch to mode-based editors like Vim to be more productive at typing and I feel the time taken to create all this will be worth the effort.

I know that there is Eclim that integrates eclipse with its daemon, and I am thinking of using just that if anyone has feedback from Eclim used with Zend Studio to be evaluated.

Together with Eclim, if I need more vim plugins to meet my needs, I would be happy to appreciate if someone could direct me to them.

+3
source share
2 answers

As I have worked many times with tools that would increase productivity with vim, I made my choice.

First, I installed GVim with MiniBuffer , NERDTree , Bufkill , Matchit , PDV (phpDocumentator), taglist plugins and others to make sure I would be as comfortable as I would need to replace the functionality that I already had in Eclipse. I also installed Eclim , which is a pretty good plugin for integrating with eclipse, and it works fine with support for termination when installing on Zend Studio 7.1 (although there is a minor error in Zend Studio for terminating help that limits its use on Eclim). I also followed these three blogs ( O'Phinney , Thomas Koch and Schlitt's , so I was at the top of productivity). After trying all this, I still felt that I didn’t like the convenience of editing GVim.

Since I was already sold on capacities behind touch input and Vim, I absolutely could not return to the bare edition, for example, to Eclipse. So I tried viPlugin , Vrapper and vimPlugin , which I did not expect from them. ViPlugin and Vrapper, which emulates vi in ​​Eclipse, unlike vimPlugin, which simply integrates Vim as an external editor (code rendering, refactoring and such unusable ones), are not yet mature enough. The visual block does not work, and some graceful error appears in your way when you start to really use them. I do not beat these plugins since they are still pretty good, but that was not what I expected.

Then I just came across Netbeans and their new version 6.8 released in December 2009, which now fully supports PHP5.3, PHPUnit, code coverage reports, refactoring, XDebug integration, code completion. What a grand finale did when I saw a jvi plugin that emulates vi in ​​netbeans (and yes, the visual block works !!). This plugin is just awesome and works very well.

The only thing that was not taken into account in my question was the Oxygen XML Editor, which is not integrated into the netbeans plugin, but I can still use my own editor, so this is not even a problem for me. There is a plugin for netbeans for Git integration, but I stuck with Git gui.

If you guys want the best of both worlds, as I wanted, you should definitely check out the new release for netbeans for developing PHP5.3, keeping Vim as the main editor.

+3
source

I am interested in using Eclim with Zend Studio. However, I already have a Zend Studio project and installing Eclim requires creating an "eclim project". This process, according to the eclim installation notes, will create a .project file in the project root directory. And that means that he will most likely overwrite the ZendStudio.project file ... which will damage my project files ... something that I don't want to do if I decide that eclim is not for me.

Let me know how it works for you.

0
source

Source: https://habr.com/ru/post/1301993/


All Articles