[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making `escape Ctrl-n` switch to window n
From: |
David Woodfall |
Subject: |
Re: Making `escape Ctrl-n` switch to window n |
Date: |
Wed, 13 Jun 2018 21:32:48 +0100 |
User-agent: |
Mutt/1.9.4+99 (e250c602) (2018-03-15) |
On Wednesday 13 June 2018 14:21,
Dun Peal <address@hidden> put forth the proposition:
> The problem is that my terminal maps Ctrl-n, for certain values of n,
> to various escape sequences.
>
> For example,Ctrl-3 generates ^[ (escape), so it enters Copy Mode
> instead of switching to window 3.
>
> Ctrl-4 genertes \^ (FS, which is interpreted as SIGQUIT).
>
> Etc.
>
> Is there a way to "unmap" combinations like Ctrl-3, so they'll be
> interpreted the same as just pressing 3, and not as their current
> special escape meaning?
>
> Thanks, D.
You can unbind keys by giving an empty bind or bindkey command.
bind ^3
for example, may do it.
The :bindkey command lists various lists of binds depending on the
flag you pass it.
eg :bindkey -d lists the default map.
See bindkey in the man page.
-Dave
--
...Deep Hack Mode -- that mysterious and frightening state of
consciousness where Mortal Users fear to tread.
-- Matt Welsh
.--. oo
(____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'