Site Tools


markkeys

Default Keybindings

None.

Syntax

  • markkeys string

Description

This is a method of changing the keymap used for copy/history mode. The string is made up of oldchar=newchar pairs which are separated by ':'.

Examples

The string “B=^B:F=^F” will change the keys 'C-b' and 'C-f' to the vi style binding (scroll up/down fill page). This happens to be the default binding for 'B' and 'F'.

The command “markkeys h=^B:l=^F:$=^E” would set the mode for an emacs-style binding.

If your terminal sends characters that cause you to abort copy mode, then this command may help by binding these characters to do nothing. The no-op character is '@' and is used like this: “markkeys @=L=H” if you do not want to use the 'H' or 'L' keys to do anything. As shown in this example, multiple keys can be assigned to one function in a single statement.

See Also


User Tools