On Wednesday 04 February 2009 19:13, Charles Campbell wrote:
> Christian Ebert wrote:
> > * Tony Mechelynck on Wednesday, February 04, 2009 at 04:23:00 +0100
> >
> >> On 03/02/09 09:50, Elias Diem wrote:
> >>> Using K in normal mode to look up a keyword under the cursor works well
> >>> when I use vim in a terminal.
> >>> However when I use gvim and do the same thing, I get the following
> >>> warning: WARNING: terminal is not fully functional
> >>>
> >>> The man pages look odd then with weird characters inserted.
> >>>
> >>> Is there a solutions to this?
> >>
> >> IIUC, the reason is that when invoking the shell, gvim gives that shell
> >> a "dumb" terminal, which emulates a teletypewriter: it can move the
> >> "paper" forward but not backward, it cannot "clear the screen", and it
> >> cannot "go to" an arbitrary line & column; I'm not sure whether it has
> >> colour and/or bold/underline/italic capabilities. Now the "man" program
> >> expects its $MANPAGER to be the "less" program, or a reasonable
> >> substitute for it, and "less" expects a video terminal working like a
> >> "text-mode TV", not like a teletypewriter.
> >
> > Perhaps this could be a workaround:
> >
> > if has("gui_running")
> >   runtime ftplugin/man.vim
> >   nmap K :Man <cword><CR>
> > endif
>
> You could use the manpageview plugin...
>
>     http://mysite.verizon.net/astronaut/vim/index.html#MANPAGEVIEW
> (cutting edge)
>     http://vim.sourceforge.net/scripts/script.php?script_id=489
> (stable)
>

Thanks for the two scripts. I use the first one 'man.vim' now and it works 
just fine. And thanks Tony for the information.

Elias

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to