Skip to content

Instantly share code, notes, and snippets.

@pkillnine
Created October 4, 2017 21:23
Show Gist options
  • Save pkillnine/f1aa4e1d24cecf5f08666fa8b0879db1 to your computer and use it in GitHub Desktop.
Save pkillnine/f1aa4e1d24cecf5f08666fa8b0879db1 to your computer and use it in GitHub Desktop.
insert mode readline bindings
config.bind('<ctrl-h>', 'fake-key <backspace>', mode='insert')
config.bind('<ctrl-f>', 'fake-key <right>', mode='insert')
config.bind('<ctrl-b>', 'fake-key <left>', mode='insert')
config.bind('<ctrl-w>', 'fake-key <ctrl-backspace>', mode='insert')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment