It's time to continue my series , since I again updated my .vimrc in the past weeks for much more comfortable editing of PHP sources using VIM. There are several new features I added: Auto completion of functions using <TAB> Auto reloading of .vimrc when changed Enclose visually selected text by braces/quotes Much more convenient scrolling through autoclosing folds Search the PHP manual directly in VIM using phpm Added settings for misconfigured machines More convenient creation of phpdoc blocks with correct indenting and automatic * chars To use some of this (and the older) features, you will have to download Rasmus' function list and install phpm (which is very easy).
A lot of folks use Vim, but many exploit only a small percentage of the editor's features. Sure, you might know how to do the basics in Vim, but what about using more advanced features such as folding, split windows, and marks? With a little practice, you can really boost your productivity with Vim. In this and future articles, I'm going to cover Vim features that you may not be familiar with if you're a casual Vim user. If you're confident using Vim to edit configuration files or make short edits in text files, but maybe not too comfortable with undertaking major writing or coding in Vim, then these articles should be for you.
Diese Seite berücksichtigt einige Eigenschaften, die erst ab Vim 6.x zur Verfügung stehen. Sie ist für Vim-Kenner zum schnellen Nachschlagen von Vim-Kommandos etc. gedacht. Daher wird eine sehr knappe Darstellung gewählt, z.T. nur in Form eines konkreten Beispiels. einige interessante Eigenschaften
Searching for a word across the project wastes most of the developres time, which can be avoided by the use of GNU Id_utils with VIM. The procedure needs to be followed is as follows: download GNU idutils 3.2d (mkid,lid,fid,fnid,xtokid) from http://www.mossbayeng.com/~ron/vim/builds.html
For my coding work i mostly use Zend Studio . And i am a big fan of this IDE. But i also do a lot of work in the shell. And that asks for at least basic vim knowledge. My colleague is a big vim fan.
UPDATE: I'm using Emacs since some months and consider it superior to VIM for most use cases after using VIM for 4 years. (And I also came to hate PHP by the way.) Today I read an article from Matthew Weier O'Phinney on Planet-PHP about Programming PHP with VIM . Since he want's to continue his series and I wrote a similiar text these days, I thought to post the text I wrote so far.
I've been using NERD tree in Vim for a while now, liking the way it easily presents the files I'm working on in a tree format. Unfortunately, many times, I don't need all the files that it lists. And other times, the files I do need are scattered across disparate locations. So I went looking for another solution, and think I've found it. Project.vim . At its root, the plugin takes advantage of Vim foldings to show and hide groups of directories and files.
I have spent a lot of time peering into a Vim window, and correspondingly, a lot of time testing different configurations. These are the best non-standard options I’ve found or stolen from others over the years; listed below in order of descending usefulness — though I think everything in this article is worth skimming — are tips that should have value to anyone, no matter how they like to run Vim. That is, there is minimal editorializing.