Mappings for tab navigation don't work

1 view
Skip to first unread message

Mr.SpOOn

unread,
Nov 18, 2008, 7:19:37 AM11/18/08
to vim...@googlegroups.com
Hi,
in my .vimrc I have this:

map <silent><A-t> :tabnew<CR>
map <silent><A-Right> :tabn<CR>
map <silent><A-Left> :tabp<CR>

So I should open a tab just pressing Alt + t, and moving with alt left
or right arrow. This just doesn't work and when I press them nothing
happens.

I searched in the .vimrc and it seems that this is the only mapping
for that keys. Why they don't work? What else can I check?
I'm running vim 7.2, inside screen.

Thanks.

Vitor Eiji Justus Sakaguti

unread,
Nov 18, 2008, 3:14:11 PM11/18/08
to vim...@googlegroups.com
2008/11/18 Mr. SpOOn <mr.sp...@gmail.com>:

>
> Hi,
> in my .vimrc I have this:
>
> map <silent><A-t> :tabnew<CR>
> map <silent><A-Right> :tabn<CR>
> map <silent><A-Left> :tabp<CR>
>
> So I should open a tab just pressing Alt + t, and moving with alt left
> or right arrow. This just doesn't work and when I press them nothing
> happens.
The <A-t> one is not going to work, since it corresponds to "ô" (try
inserting a ô in normal mode), but do the <A-Right> and <A-Left>
mappings really not work? They do work for me.

Also, please note that your mappings would work only in normal mode.
For mor info, see
:help map

Regards,
Vitor

Mr.SpOOn

unread,
Nov 18, 2008, 6:02:48 PM11/18/08
to vim...@googlegroups.com
On Tue, Nov 18, 2008 at 9:14 PM, Vitor Eiji Justus Sakaguti
<vito...@usp.br> wrote:
> The <A-t> one is not going to work, since it corresponds to "ô" (try
> inserting a ô in normal mode)

I am in Italy and on my keyboard there isn't such a character.

> but do the <A-Right> and <A-Left>
> mappings really not work? They do work for me.
>
> Also, please note that your mappings would work only in normal mode.
> For mor info, see
> :help map

Yes, I do know they only work in normal mode. It is really strange.

Reply all
Reply to author
Forward
0 new messages