# buffer-bind-key(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

buffer-bind-key - Create local key binding for current buffer
buffer-unbind-key - Remove local key binding for current buffer

## SYNOPSIS

n buffer-bind-key "command" "key"
n buffer-unbind-key "key"

## DESCRIPTION

buffer-bind-key creates a key binding local to the current buffer, binding the command command to the keyboard input key. This command is particularly useful in conjunction with file loading hooks (see add-file-hook(2)) allowing local key bindings dependent upon the context of the buffer.

The message line input is not effected by the current buffers local bindings.

buffer-unbind-key unbinds a user created local key binding, this command effects only the current buffer. If a negative argument is given to buffer-unbind-key then all the current buffer's bindings are removed.

## NOTES

The prefix commands cannot be rebound with this command.

Key response time linearly increases with each local binding added.

## SEE ALSO

global-bind-key(2), ml-bind-key(2), osd-bind-key(2), global-unbind-key(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>