<?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>Mon, 31 Oct 2011 21:22:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using vim as a pager (in gentoo)</title>
		<link>http://jk3.us/2007/02/01/vim-as-pager/</link>
		<comments>http://jk3.us/2007/02/01/vim-as-pager/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 17:26:21 +0000</pubDate>
		<dc:creator>Jay</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 &#8230; <a href="http://jk3.us/2007/02/01/vim-as-pager/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>

<!-- Start of #1 shortcode -->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9645012178760617";
/* jk3.us blog post horizontal */
google_ad_slot = "0964181340";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End of #1 shortcode -->

]]></content:encoded>
			<wfw:commentRss>http://jk3.us/2007/02/01/vim-as-pager/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

