Skip to content

Instantly share code, notes, and snippets.

@syranez
Created September 20, 2011 19:01
Show Gist options
  • Save syranez/1229985 to your computer and use it in GitHub Desktop.
Save syranez/1229985 to your computer and use it in GitHub Desktop.
typo fixed
* Compile app-editors/vim with +vim-pager
* Create /etc/env.d/70pager with
PAGER=vimpager
MANPAGER=vimmanpager
pager=$PAGER
* Create /etc/profile.d/pager (Sets the vimpager system-wide)
export PAGER=/usr/bin/vimpager
export MANPAGER=/usr/bin/vimmanpager
* Edit /etc/man.conf
PAGER /usr/bin/vimmanpager -isR
BROWSER /usr/bin/vimmanpager -isR
* Modify /etc/etc-update.conf
Comment the pager="less" line
Uncomment the lines
diff_command="vim -d %file1 %file2"
using_editor=1
# Okay, done. That was pretty e-z, was not it?
#
# The real challenge is getting rid of sys-apps/less:
* Remove the less flag if set and emerge -auvDN world
* emerge -C sys-apps/less
# verify
emerge -puvD world
# Oh, this was pretty e-z too. Gentoo <3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment