Posted in development on May 31, 2009 | Leave a Comment »
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 »
Posted in cli, vim on May 24, 2009 | 9 Comments »
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 »
Posted in development on May 17, 2009 | 8 Comments »
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 »
Posted in development on May 10, 2009 | 1 Comment »
“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 »
Posted in development on May 4, 2009 | 1 Comment »
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 »