Using vimpager as your PAGER program

Sorry for not posting anything these days. It’s been very busy recently. And every time when I have some experience to share, the damn GFW blocks me. Anyway, I’m really glad to see that there are people waiting for my post :). So I’ll try to update my blog more frequently.

Today I’m going to talk about our PAGER program. Maybe the most commonly used PAGER program is “less” or “more”. Every time you have too much information in your terminal and you will use “command | less” to make it readable(git, man and many other commands call the PAGER program). But the above two commands do not give us a beautiful output. There’s another PAGER program called “most”, which could give you a colorful output. However, it doesn’t use vim key bindings and involves several dependencies. So I choose not to use it.

Wait a minute, think about your vim. Isn’t it amazing if we can use vim for our PAGER program? It has syntax highlighting, different color themes and the most important of all — vim features including key bindings, searching and etc.

Here is the download link for vimpager. What can it do? Let me show you my git diff and git log:

git diff with vimpagergit log with vimpager

Colorful result with vim key bindings. And it’s also very fast.

Installation is quite easy. Thanks to Daniel Gryniewicz’s comment: Add “vim-pager” use flag and emerge vim.




  1. #1 by Daniel Gryniewicz on January 11, 2011 - 9:48 pm

    Or just add the vim-pager USE flag to vim…

    • #2 by qiaomuf on January 11, 2011 - 11:02 pm

      Ah, didn’t notice that :P, thanks

  2. #3 by Pacquiao vs Mosley on January 17, 2011 - 10:38 pm

    It’s good to hear back from your expertise. Keep them coming!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: