package newedit

// Elvish code for default bindings, assuming the editor ns as the global ns.
const defaultBindingsElv = `
insert:binding = (binding-map [
  &Ctrl-D=  $commit-eof~
  &Default= $insert:default-handler~
])
`

// vi: set et:

package newedit

// Elvish code for default bindings, assuming the editor ns as the global ns.
const defaultBindingsElv = `
insert:binding = (binding-map [
  &Left=  $move-left~
  &Right= $move-right~

  &Ctrl-Left=  $move-left-word~
  &Ctrl-Right= $move-right-word~
  &Alt-Left=   $move-left-word~
  &Alt-Right=  $move-right-word~
  &Alt-b=      $move-left-word~
  &Alt-f=      $move-right-word~

  &Home= $move-sol~
  &End=  $move-eol~

  &Backspace= $kill-left~
  &Delete=    $kill-right~
  &Ctrl-W=    $kill-left-word~
  &Ctrl-U=    $kill-sol~
  &Ctrl-K=    $kill-eol~

  &Ctrl-D=  $commit-eof~
  &Default= $insert:default-handler~
])
`

// vi: set et:

Add common buffer builtins to the default binding.
newedit: Add common buffer builtins to the default binding.
