How to:
enable USE="vim-pager" for package app-editors/vim and add
Code: Select all
export MANPAGER=vimmanpagercredit: http://hawking.nonlogic.org/archives/20 ... _with_vim/
Code: Select all
export MANPAGER=vimmanpagerCode: Select all
vi /etc/rc.confCode: Select all
EDITOR="/bin/nano"Code: Select all
EDITOR="/bin/vim"Code: Select all
env-update && source /etc/profileYou can try the following. Make your own script, call it for example myvimmanpager and set your MANPAGER variable to this script. Next, add the second-last line to the original script /usr/bin/vimmanpager, to make it read like this (myvimmanpager):faux wrote:Yes, but you have to move the cursor over the screen before scrolling backwards, after scrolling forwards.ppurka wrote:It already doesfaux wrote:Nice tip! Thank's!
Is there a possibility to setup the pager to allow scrolling line-by-line via the up/down keys?
Code: Select all
#!/bin/sh
sed -e 's/\x1B\[[[:digit:]]\+m//g' | \
tr '\267' '.' | col -b | \
vim \
-c 'let no_plugin_maps = 1' \
-c 'set nolist nomod ft=man' \
-c 'let g:showmarks_enable=0' \
-c 'map <up> <C-Y>' \
-c 'runtime! macros/less.vim' -
That is vim's behaviour by default. Even in vim you can always use C-e and C-y to scroll the screen. Make your remapping if you like other key strokes.faux wrote:Yes, but you have to move the cursor over the screen before scrolling backwards, after scrolling forwards.ppurka wrote:It already doesfaux wrote: Is there a possibility to setup the pager to allow scrolling line-by-line via the up/down keys?