<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jay Knight &#187; gentoo</title>
	<atom:link href="http://jk3.us/tag/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://jk3.us</link>
	<description>or something along those lines</description>
	<lastBuildDate>Sun, 27 Sep 2009 23:06:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using vim as a pager (in gentoo)</title>
		<link>http://jk3.us/2007/02/vim-as-pager/</link>
		<comments>http://jk3.us/2007/02/vim-as-pager/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 17:26:21 +0000</pubDate>
		<dc:creator>Jay K</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://jk3.us/2007/02/01/vim-as-pager/</guid>
		<description><![CDATA[Wondering what the &#8220;vim-pager&#8221; use flag on app-editors/vim did, I gave it a shot.  Turns out it gives you 2 extra commands: vimpager and vimmanpager.  So adding

export MANPAGER=/usr/bin/vimmanpager

to your login script of choice (.bashrc works just fine), man will use vim as a pager, complete with systax highlighting and ability to use the [...]]]></description>
			<content:encoded><![CDATA[<p>Wondering what the &#8220;vim-pager&#8221; use flag on app-editors/vim did, I gave it a shot.  Turns out it gives you 2 extra commands: vimpager and vimmanpager.  So adding<br />
<code><br />
export MANPAGER=/usr/bin/vimmanpager<br />
</code><br />
to your login script of choice (.bashrc works just fine), man will use vim as a pager, complete with systax highlighting and ability to use the mouse scroll wheel and other such fun things to navigate man pages.</p>
<p>You could also set PAGER (and/or alias less) to vimpager, but I found that vimpager waits for EOF before displaying anything, meaning it won&#8217;t work for commands that run until interupted, and commands that run for a long time wait until completion to show anything at all.  </p>
<p>UPDATE to ask: If anyone knows a way to use this but to use the colors from a program with color output, eg. &#8220;ls &#8211;color=always | vimpager&#8221;, please let me know.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9645012178760617";
/* 468x60, created 9/23/08 */
google_ad_slot = "2622764497";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://jk3.us/2007/02/vim-as-pager/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
