Warning: Undefined array key 0 in
/home/public/screen/inc/html.php on line
1271
Warning: Undefined array key 1 in
/home/public/screen/inc/html.php on line
1453
Warning: Undefined array key -1 in
/home/public/screen/inc/html.php on line
1454
Warning: Undefined array key 1 in
/home/public/screen/inc/html.php on line
1457
Warning: Undefined array key -1 in
/home/public/screen/inc/html.php on line
1458
Differences
This shows you the differences between two versions of the page.
|
|
— |
commands:markkeys [2010-01-22 16:20] (current) asciiphil created |
| ====== markkeys ====== |
| |
| ===== Default Keybindings ===== |
| |
| None. |
| |
| ===== Syntax ===== |
| |
| * ''**markkeys** //string//'' |
| |
| ===== Description ===== |
| |
| This is a method of changing the keymap used for ''[[commands: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 ===== |
| |
| * The ''[[commands:copy]]'' command |
| * [[:interface]] |
| |