Every time someone shows me something they like about some other editor it is always fun to show how the same thing can be done in vim. A popular thing in modern editors now seems to be multiple cursors and folks get excited about appending some text to a bunch of lines all at the […]
When developing PHP apps I often want to run the current file and see the results. Sometimes I even want to save those results, or perhaps manipulate the results. So I wrote this little vim function to run my currently open PHP file and place the results in a new VIm buffer.
Here are some of my favorite tips for working in Vim. I use MacVim but everything below should apply to any version of Vim you are using. Vim is such an amazingly powerful editor you can use it for years and still learn new stuff all the time. This is a small collection of features […]
The is really a Vim tip on how to fold any code block including functions. It’s really helpful if you want to collapse a function or any other type of code block. Best of all, it is quick and easy to do. Navigate your cursor somewhere inside of the code block you want to fold. […]
Here is a quick, but awesome little vim tip. To put quotes around a word, put your cursor anywhere on a word and then type: ysiw’ or if you want double quotes ysiw”
Supposing you are whipping up some PHP code in Vim and want to quickly check the PHP documentation for the function you just typed. I wrote a quick little script to do just that. It uses the _open_ command is OSX to launch your default web browser to the page in the online PHP documentation […]