Feeds:
Posts
Comments

Archive for May, 2009

I think I already established that Vim makes an excellent pager. Let me take it one step further: Vim is a customizable, programmable pager. (!)
There are plenty of cases where you want to pick one (1) thing out of a list. Vim can easily be made into a list picker.
A few examples

pick a deep directory [...]

Read Full Post »

Using vim as a pager

I’ve talked casually about using Vim as a pager before. However, I’m still surprised to see how many people use Vim regularly and don’t know about this feature.
Here’s a quote straight from vim –help

vim [arguments] – read text from stdin

Admittedly, it’s [...]

Read Full Post »

Git Diff with Vimdiff

What happens when you type git diff? As with all interesting questions, the answer is “it depends…”
Here’s one thing you want git to do:

Vimdiff!
Step 1: add this to your .gitconfig

[diff]
  external = git_diff_wrapper
[pager]
  diff =

Step 2: create a file named git_diff_wrapper, put it [...]

Read Full Post »

Code Tetris

“How did we get into this mess?” you exclaim looking at the code equivalent of:

There are a lot of reasons why projects end up looking like that. Beyond incompetence, there is the realization that you know more about a problem after you solve it.
Here’s a familiar scenario:
You extract an ugly part of a function. Out [...]

Read Full Post »

Next page bookmarklet

Most useful websites use some form of pagination. However, link relations are not in widespread use.
I liked the explanation:

Regular links (<a href>) simply point to another page. Link relations are a way to explain why you’re pointing to another page. They finish the sentence “I’m pointing to this other page because…”

I know a few sites [...]

Read Full Post »