#746491 vim: Ctrl+PgUp (and Down) does not switch beteen tabs

Package:
vim
Source:
vim
Description:
Vi IMproved - enhanced vi editor
Submitter:
Alberto Maurizi
Date:
2015-08-12 02:39:04 UTC
Severity:
normal
#746491#5
Date:
2014-04-30 14:49:54 UTC
From:
To:
Dear Maintainer,

it happened recently in sid (don't know exaclty when, but I'd say less than
two weeks): if I open more files simultaneously with the -p option, the
Ctrl+PgUp (and Down) key sequence does not switch between tabs anymore.

Regards,
Alberto
--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.gtk
/usr/bin/vim is /usr/bin/vim.gtk
/usr/bin/gvim is /usr/bin/vim.gtk

#746491#10
Date:
2015-08-02 04:55:57 UTC
From:
To:
I'm not able to reproduce this.  I ran “vim -p …” with 10+ files and
Ctrl+PgUp/PgDown work fine.

What terminal are you using?  Did you happen to start using a different
terminal when this started happening?

Cheers,

#746491#15
Date:
2015-08-02 20:36:05 UTC
From:
To:
/etc/alternatives/x-terminal-emulator

I just tried: opened 7 files (verified .vimrc not containing any remap):
Ctrl+PgUp/PgDown does nothing. Also verified that "Ctrl" is not captured by
WM: Ctrl+V enters the visual block as it should.

I think I never changed my terminal but, I'm afraid, I cannot be 100% sure.
However, I tried also with xterm and /usr/bin/xfce4-terminal.wrapper and
nothing changes.

Best,
Alberto

#746491#20
Date:
2015-08-03 00:49:49 UTC
From:
To:
Hmm.  I thought gnome-terminal captured <C-PgUp>/<C-PgDown>, but I know
xterm doesn't.

Can you try with "vim -u NONE -N -p ..." and see if that works?

Cheers,

#746491#25
Date:
2015-08-03 08:09:56 UTC
From:
To:
True (I didn't know).

I tried and, when I realized that without vimrc it worked, I started playing
with my (bare) .vimrc and I found that I did place a "colorscheme" setting
__before__ the "syntax on". Swapping them makes Ctrl+PgUp||PGDown working
(in xterm).

I know my settings din't make any sense and  I'm sorry for the
inconvenience. However, this side-effect looks a bit awkward. Do you think
it deserves some attention?

Cheers,
Alberto

#746491#30
Date:
2015-08-12 02:35:14 UTC
From:
To:
I have "colorscheme" before "syntax on" in my vimrc, and those keys
work fine.

Can you put "echom &term" in your vimrc after the "colorscheme" command
and after the "syntax on" command and see if anything changes, for both
scenarios?  ":messages" will show the output of the commands, in case
they get lost during startup.

Cheers,