Blog Archives

Find and Open (in vim) Multiple Files

This is a quick set of examples for finding and opening multiple files in Vim.

 

Tagged with: ,
Posted in Development, Tech Tips

Autocomplete in iTerm2

This is a really quick tip that could save you tons of time in iTerm2. If you use any auto-completion you know how important it is to your workflow. Personally, I rely heavily on omni and generic completion in Vim.

Tagged with: , ,
Posted in Tech Tips

Keyboard Maestro – Paste into Vim (with formatting)

Vim users frequently run   :set paste  and :set nopaste . Using paste mode makes it simple to paste text while maintaining whitespace, but some other aspects of Vim are reset in paste mode (e.g., autoindent and smartindent). I’m sure there’s a way to make

Tagged with: , ,
Posted in Tech Tips

Finally Happy with an IDE

I’ve been using Vim (yes, their website is painful) almost exclusively as a tool for writing code since 2008. I’ve had many people tell me the benefits of using a good IDE, but have never felt comfortable leaving Vim (and leaving

Tagged with: , ,
Posted in Development

Vim in 10 Minutes

This week at my local PHP user group we were speaking about IDEs. There were four of us who prepared to speak to attendees. I wasn’t sure what kind of time I’d be allotted, so I didn’t prepare as I

Tagged with:
Posted in Development

Using Vimdiff with Git

​UPDATED: Check out “git difftool” which makes this process much cleaner (than the commands I previously had listed here). Basically, you can tell git what to use as a diff tool and it’ll let you do things like:

Here is how

Tagged with: , ,
Posted in Development

Using Vim to generate HTML for syntax-highlighted code examples

Recently I was looking for a simple way to embed colorized code snippets into Evernote or VoodooPad. Both of these applications allow HTML-colorized text. I’ve seen a few websites that will generate the appropriate code, but I wanted something I

Tagged with:
Posted in Development