Hi, 

A.J.Mechelynck <[EMAIL PROTECTED]> words
        on 12.03.2007 - 08:30 (+0100 Zulu-Time):

> Simon Jackson wrote:
> >the following entries in my vimrc only work in gvim but will not work
> >in eterm, aterm or xterm:
> >
> >nmap <C-S-tab> :tabprevious<cr>
> >nmap <C-tab> :tabnext<cr>
> >map <C-S-tab> :tabprevious<cr>
> >map <C-tab> :tabnext<cr>
> >imap <C-S-tab> <ESC>:tabprevious<cr>i
> >imap <C-tab> <ESC>:tabnext<cr>i
> >
> >anyone know why?
> >
> 
> Open Console Vim with an empty [No Name] buffer, hit i or a to start Insert 
> mode, then hit Ctrl-K followed by one of the keys in the {lhs} of your 
> mappings. The keyname should appear in <> notation. If it doesn't, hit 
> Ctrl-V followed by the same key. You should see the bytestring sent by the 
> keyboard interface appear in the buffer. If nothing appears, it means that 
> key press doesn't reach Vim. For instance, in my kde window manager, 
> Ctrl-Tab and Ctrl-Shift-Tab are intercepted by the window manager to mean 
> "go to next/previous virtual desktop"; they never reach xterm or even gvim. 

I always wondered why the tips didn't work when I tried to implement
this in my .vimrc, but now I know. Awsome. 

I figured out that the keystroke CTRL + Tabulator at my Terminal
reach the vim with as <C-I>. Don't know why but with the shortcut in the
.vimrc it works fine.

With the method Tony describe ^I ( <C-I> ), was not shown, I tried it
with: 
 * Open vim 
 * : 
 * CTRL + K 
 * and then I tpyed the keystroke twice ( here: CTRL + Tabulart )
Finaly the shortcut was shown. 

Perhpas this helps. 


Cheers -- Erik 

-- 
J. Erik Heinz
Keyboard-samuraing in process

:: All non-mailinglist mail to this emailadress will be deleted.

Xing: https://www.xing.com/profile/JErik_Heinz
Blog: http://jerik.blogspot.com

Reply via email to