Celelibi wrote:

> I reported a bug in the debian BTS, but found that it also apply to
> upstream vim.
> 
> Here it is: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741400
> 
> In summary, it looks like vim do not support termcaps %e nor %c
> (corresponding to terminfos kPRV and kNXT). They're supposed to
> produce <S-PageUp> and <S-PageDown>.
> 
> I think vim only produce <S-PageUp> or <S-PageDown> when it has an
> exception for the given terminal. i.e. when it recognize the content
> of the environment variable TERM and has a special case for it.
> 
> I tried to look at the source code, but it's too complicated for the
> amount of time I spent.

What makes you think that %e and %c are the shifted next/previous page
keys?  The termcap manpage says:

       kN   Key for next page
       kP   Key for previous page

       %c   shifted next key
       %e   shifted previous key

"next key" and "next page" are different.  Perhaps it's just a
coincidence that %c and %e contain the codes?  Officially there are no
entries for the shifted next/previous page keys.

-- 
NEIL INNES PLAYED: THE FIRST SELF-DESTRUCTIVE MONK, ROBIN'S LEAST FAVORITE
                   MINSTREL, THE PAGE CRUSHED BY A RABBIT, THE OWNER OF A DUCK
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui