.TH "bind" 1 "8 Feb 2007" "Version 1.22.3" "fish" \" -*- nroff -*- .ad l .nh .SH NAME bind - handle key bindings .PP .SS "Synopsis" \fCbind [OPTIONS] [BINDINGS...]\fP .PP The \fCbind\fP builtin causes fish to add the readline style bindings specified by BINDINGS to the list of key bindings, as if they appeared in your \fC~/.fish_inputrc\fP file. .PP For more information on the syntax keyboard bindings, use \fCman readline\fP to access the readline documentation. The availiable commands are listed in the \fCCommand Line Editor\fP section of the fish manual - but you may also use any fish command! To write such commands, see the \fCcommandline\fP builtin. It's good practice to put the code into a \fC\fCfunction\fP -b\fP and bind to the function name. .SS "Description" .IP "\(bu" 2 \fC-M MODE\fP or \fC--set-mode=MODE\fP sets the current input mode to MODE. .PP .SS "Example" \fCbind -M vi\fP changes to the vi input mode .PP \fCbind ''\\M-j': jobs'\fP Binds the jobs command to the Alt-j keyboard shortcut