Skip to main content

Give MOST pager LESS key-bindings

I like MOST for its ability to give color to manpages but dislike its keybindings. As a long-time user of Vim, I feel inconvenient to move my palm out of the home row. LESS offers VIM-alike keybindings which I used most of the time.

I was wondering whether or not MOST can have LESS-alike keybindings. Googling around, having no answer, I decided to download MOST source-code to dig into it. But to my surprise, MOST did the thing, allowing LESS keybindings customization through configuration file. Great !!!

Just follow instructions below and you will have colorful manpages with LESS keybindings.

0. You need to install MOST first (depending on your *nix system, I use Ubuntu).

1. Download MOST source code from : ftp://space.mit.edu/pub/davis/most/most-5.0.0.tar.gz

2. tar xvzf most-5.0.0.tar.gz

3. cd most-5.0.0 , you will see file called lesskeys.rc , this is key-emulation for LESS.

4. cp lesskeys.rc ~/.mostrc , restart terminal then you will have MOST with LESS keybindings ready !
You can edit .mostrc file to comfort your needs.



Hope this help.

Update:
1. You can have colorful manpages without using most as a pager
http://otype.net/2008/11/colored-man-pages-for-development-on-ubuntu/
http://nion.modprobe.de/blog/archives/569-colored-manpages.html

Comments

Popular posts from this blog

Ruby on Rails 2.1

Rails 2.1 has been released over 2 weeks. The first in-depth book of what's new in Rails 2.1 has also been released. Take your copy. http://www.nomedojogo.com/2008/06/09/new-free-book-ruby-on-rails-21-whats-new/

YES WE CAN !!!

YEAH !!! WONDERFUL !! Viet Nam has won the AFF Cup for the first time in history after defeating Thailand. History has changed. Now we can say YES WE CAN. WE CAN MAKE HISTORY. NOW WE MADE HISTORY.