Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

commands:markkeys [2010-01-22 16:20] (current)
asciiphil created
Line 1: Line 1:
 +====== 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]]
  

User Tools