<<< Date Index >>>     <<< Thread Index >>>

Re: viewing messages on demand in a better page



Hello together,

* Thomas Glanzmann <sithglan@xxxxxxxxxxxxxxxxxxxx> [040815 12:47]:
> I am looking at a message and decide that it would be better to read it
> in vim. So I press a key and vim popsup. The message should be read-only
> of course.

okay this was a really hard one. :-)

macro pager V "| vim -c 'se ft=mail ro nomod ic ls=1 keywordprg=dict' \
                     -c 'nmap <Space> <C-F>' -c 'nmap b <C-B>' \
                     -c 'nmap q :q!<CR>' -c 'norm L' - <ENTER>"

and from my .dictrc:
pager "vim -c 'se ft=mail ro nomod ic ls=1 keywordprg=dict' -c 'nmap <Space> 
<C-F>' -c 'nmap b <C-B>' -c 'nmap q :q!<CR>' -c 'norm L' -"

Here we go! :-)

        Thomas