knz/go-libedit

configuring vim keybindings with `bind -v` breaks tab completion

Closed this issue · 2 comments

Naively configuring vim keybindings a la

$ cat ~/.editrc
bind -v

breaks tab completion and ^C interrupts. Arguably not a bug in go-libedit, but I've only ever configured readline and I expected bind -v to work like set editing-mode vi. Fixed with a smarter ~/.editrc, but @knz you mentioned we might be able to do something on the go-libedit side too?

$ cat ~/.editrc
bind -v
bind "^R" em-inc-search-prev
bind "^C" rl_interrupt
bind \\t rl_complete
knz commented

Addressed in 438167a.

Thanks, @knz!