Skip to content

Instantly share code, notes, and snippets.

@zzamboni
Created December 19, 2017 15:45
Show Gist options
  • Save zzamboni/9deb6c8cc47b93421c2ff8f0ad5c7c0b to your computer and use it in GitHub Desktop.
Save zzamboni/9deb6c8cc47b93421c2ff8f0ad5c7c0b to your computer and use it in GitHub Desktop.
Exception: variable $edit: not found
Traceback:
<builtin module>, line 2:
$b Ctrl-A $edit:&move-dot-sol
<builtin module>, line 1-27:
b=[k f]{ edit:insert:binding[$k] = $f } {
$b Ctrl-A $edit:&move-dot-sol
$b Ctrl-B $edit:&move-dot-left
$b Ctrl-D {
if (> (count $edit:current-command) 0) {
edit:kill-rune-right
} else {
edit:return-eof
}
}
$b Ctrl-E $edit:&move-dot-eol
$b Ctrl-F $edit:&move-dot-right
$b Ctrl-H $edit:&kill-rune-left
$b Ctrl-L { clear > /dev/tty }
$b Ctrl-N $edit:&end-of-history
# TODO: ^O
$b Ctrl-P $edit:history:&start
# TODO: ^S ^T ^X family ^Y ^_
$b Alt-b $edit:&move-dot-left-word
# TODO Alt-c Alt-d
$b Alt-f $edit:&move-dot-right-word
# TODO Alt-l Alt-r Alt-u
# Ctrl-N and Ctrl-L occupied by readline binding, $b to Alt- instead.
$b Alt-n $edit:navigation:&start
$b Alt-l $edit:location:&start
}
/Users/taazadi1/.elvish/rc.elv, line 27:
use readline-binding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment