* 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
c
--
\black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---