Questions tagged [key-mapping]

91 questions
31
votes
2 answers

What are valid keys for tmux?

I was trying to learn how to use the bind-key [-cnr] [-t key-table] key command [arguments] better, but was having some trouble figuring out what "valid keys" are for bind-key command. I tried doing man tmux and Google too, but I couldn't find…
Charlie Parker
  • 1,497
  • 3
  • 16
  • 28
28
votes
6 answers

key bindings table?

Do we have a key bindings table that translates all the various ways of referring to a key press? I'm using zsh, but I presume that if there was such a table it would work for any shell. The reason I ask is that I'd like to assign some keybindings…
Ray Andrews
  • 2,125
  • 4
  • 20
  • 37
25
votes
1 answer

keyboard hard remap keys?

I am trying to find a way to remap keyboard keys forcefully. I tried using xmodmap and setxkbmap, but they do not work for one specific application. Such commands work for other normal windowed/applications on X tho. I think the application may be…
Aquarius Power
  • 4,099
  • 5
  • 38
  • 56
22
votes
5 answers

vim shortcut to open a file under cursor in an already opened window

In vim you can open a file under the cursor by using the gf command. One can also easily open that file in a new split window by hitting f. This is a really nice and time saving feature. However, I can't figure out, how to open the file in…
psibar
  • 461
  • 1
  • 3
  • 10
20
votes
2 answers

The difference between \e and ^[

Gilles wrote: character 27 = 033 = 0x1b = ^[ = \e Demizey wrote: ^[ is just a representation of ESCAPE and \e is interpreted as an actual ESCAPE character Then I also found this line from a TechRepublic article Make sure you write the key…
Forethinker
  • 1,349
  • 13
  • 25
20
votes
2 answers

How do I bind to Shift+{Left,Right} in tmux?

I'm looking at tmux from screen, and have hit a bump while configuring the (highly configurable!) tmux key bindings. Problem is, in my .screenrc I have bindkey ^[[d prev bindkey ^[[c next bindkey ^[[a title bindkey ^[[b screen 1 and the bindings…
Leonid Shevtsov
  • 345
  • 1
  • 2
  • 7
17
votes
3 answers

What are the characters printed when Alt+Arrow keys are pressed?

When I press AltUp, A printed to terminal screen. Same thing happened when I pressed AltDown but B is printed instead. Other characters that I realized; AltLeft = D and AltRight = C What is the purpose of these commands?
yfklon
  • 320
  • 2
  • 9
17
votes
1 answer

Disable or remove default vim keybinding

Is there a way to disable or remove a default vim keybinding? For example, if I wanted (shift-k) to do nothing, how would I achieve this?
hlin117
  • 427
  • 2
  • 4
  • 10
12
votes
3 answers

vim customized with emacs commands (insert mode only)

I was an emacs user, and I have to switch to vim. But I miss some basic emacs commands in vim insert mode: C-A C-E C-K C-Y C-x C-s ... and some other I know that I can press Escape and then press some of the following keys and finally press key…
oHo
  • 1,248
  • 1
  • 12
  • 22
11
votes
4 answers

Rebinding "clear prompt" in mutt

By default, when entering information at the command prompt in mutt, you can clear the prompt with Ctrlg, as described in the manual: ^G n/a abort I have been trying to bind this function to Escape. Unfortunately, abort is…
jasonwryan
  • 71,734
  • 34
  • 193
  • 226
10
votes
1 answer

How to remap a key combination to a key?

Is it possible to remap a key combination to a key in X server based system, so that for example if I press End + Arrow_up, keycode for Home is generated? Google seems to be silent on this issue. It would be great if there was a solution, since it…
jons34yp
  • 201
  • 2
  • 5
9
votes
3 answers

Map Control-Shift-Tab in rxvt-unicode

I'd like to map the keybinding Ctrl+Shift+Tab in rxvt-unicode. I managed to map Ctrl+Tab as follows. The corresponding entry in .Xresources is URxvt.keysym.Control-Tab: \033[27;5;9~ Using cat -v confirms that this mapping works: $ cat…
Marco
  • 33,188
  • 10
  • 112
  • 146
7
votes
1 answer

Defining key sequences in Evil-mode Emacs

I couldn't find any instructions on defining key sequences in the Evil doc. The example given by the developers only covers a single key. (define-key evil-normal-state "w" 'foo) What do I need to do, if I want to define "gv" in the normal mode or…
Mark T.
  • 73
  • 1
  • 3
7
votes
2 answers

Hex codes for input key combinations

In iTerm2 one can setup keyboard shortcuts so that for a given input sequence, iTerm2 sends a specific hex code to the terminal. What exactly are these hex codes? And how can I identify a hex code for a given input key sequence? In my case I am…
Amelio Vazquez-Reina
  • 40,169
  • 77
  • 197
  • 294
7
votes
1 answer

exclude certain key combinations from being passed via rdesktop

When connected via rdesktop to a remote machine, normally all keys pressed inside the active rdesktop window are transferred to the remote machine. Is it possible to define key strokes, which are excluded? By that I mean, when pressed while the…
Martin Vegter
  • 69
  • 66
  • 195
  • 326
1
2 3 4 5 6 7