Wednesday, February 2, 2011

Re: Manpage inside Vim

2011/2/2 Marco <netuse@lavabit.com>:
> On 2011-02-02 Daniel Corrêa <dnlcorrea@gmail.com> wrote:
>
>> Try:
>>
>>      :tabnew | silent !man <thing>
>
> If i execute !man ls I get the message:
>
> WARNING: terminal is not fully functional
>
> and the displayed man page looks distorted in gvim. Why?

This is not (exactly) a vim issue but man pager's (typically 'less') one.

Gvim isn't terminal application and you probably did'nt call it from
terminal but from some Gui menu, icon or "command-line popup" which
aren't terminals and doesn't export any value for TERM environment
variable.

less reads this value to ensure that terminal is fully functional and
fails to comatibility mode when not recognize the TERM value.

Did you try to run gvim from terminal and try again?

In any case, you could avoid this problem by specifying TERM value in
command line or setting this environment variable from within vim (I
don't know, but must be possible).

Fore example:
:!TERM=xterm man ls

--
Joan Miquel Torres__________________________________
Linux Registered User #164872
http://www.mallorcaweb.net/joanmiquel
BULMA: http://bulma.net http://breu.bulma.net/?l2301

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment