On Sa, 08 Jul 2023, Enan Ajmain wrote:
> This is an edgecase.  I am using win32 version of Vim (built with gcc of
> mingw-w64) inside Tmux provided by msys.  In it C-h isn't interpreted as
> it is done outside Tmux.  I have this keymap:
> 
>     nnoremap <C-h> <C-w>h
> 
> And it doesn't take effect in win32-vim in tmux.
Have you tried explicitly typing <C-h>?
> I also have an unix version of vim, built with gcc from msys.  By "unix
> version," I mean it runs on msys shell with its unix layer.  This
> version of vim, unix-vim, interprets <C-h> inside tmux properly.  Vim
> inside Tmux on native Linux also interprets <C-h> properly.
> 
> Although few if anyone use win32 Vim inside Tmux, so this issue is not
> really an issue, but I am curious as to what's going on, if anyone here
> can shed some light.
Well, it may be, that Vim just receives <C-?> instead of <C-h>. Vim even 
has its own method of fixing this by using the :fixdel command. Nowadays 
one usually uses stty erase ^?  or similar to configure the backspace 
thing (or one configures the terminal directly what it should send for 
backspace).
Long are the times gone, when I needed to fiddle with that ;)
So I would first try inside vim, what is actually printed when typing in 
insert mode <C-V><Backspace> and from there we can continue.
Best,
Christian
-- 
Zu viel Zeit mit Studieren verbringen, ist Faulheit; es nur als
Schmuck zu verwenden - Affektiertheit; nur danach zu urteilen -
Gelehrtenwahn.
		-- Francis Bacon
-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZKmVXfGyPprE3zcP%40256bit.org.
Saturday, July 8, 2023
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment