Skip to content

Instantly share code, notes, and snippets.

@brainv
Forked from friek/.editrc
Created June 7, 2021 19:19
Show Gist options
  • Save brainv/a86f4c2047fd27687f69d76964e53f5a to your computer and use it in GitHub Desktop.
Save brainv/a86f4c2047fd27687f69d76964e53f5a to your computer and use it in GitHub Desktop.

Revisions

  1. @friek friek created this gist May 26, 2015.
    10 changes: 10 additions & 0 deletions .editrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Ctrl+W to delete the previous word
    bind "^W" ed-delete-prev-word
    # Ctrl+U to delete the current line contents
    bind "^U" vi-kill-line-prev
    # Ctrl+R to search the query history
    bind "^R" em-inc-search-prev
    # Ctrl+Left Arrow to go the previous word
    bind "\e[1;5D" vi-prev-word
    # Ctrl+Right Arrow to go to the next word
    bind "\e[1;5C" vi-next-word