inputrc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. set editing-mode vi
  2. set bell-style none
  3. set show-mode-in-prompt on
  4. set blink-matching-paren on
  5. set colored-completion-prefix on
  6. set colored-stats on
  7. # set history-preserve-point on
  8. set mark-symlinked-directories on
  9. set show-all-if-ambiguous on
  10. set show-all-if-unmodified on
  11. set skip-completed-text on
  12. # todo add background
  13. set vi-ins-mode-string "+ "
  14. set vi-cmd-mode-string "漣"
  15. set keymap vi-insert
  16. "\e[A": history-search-backward
  17. "\e[B": history-search-forward
  18. #TAB: menu-complete
  19. "\e[Z": menu-complete
  20. "\e[H": beginning-of-line
  21. "\e[F": end-of-line
  22. set keymap vi-command
  23. "\C-a\C-xm": set-mark
  24. "\C-a\C-xh": backward-char
  25. "\C-a\C-xl": forward-char
  26. "\C-a\C-xw": vi-forward-word
  27. "\C-a\C-xW": vi-forward-bigword
  28. "\C-a\C-xb": vi-backward-word
  29. "\C-a\C-xB": vi-backward-bigword
  30. "\C-a\C-xe": vi-end-word
  31. "\C-a\C-xE": vi-end-bigword
  32. "\C-a\C-xf": vi-char-search
  33. "\C-a\C-xt": vi-char-search
  34. "\C-a\C-xF": vi-char-search
  35. "\C-a\C-xT": vi-char-search
  36. "\C-a\C-x0": beginning-of-line
  37. "\C-a\C-x$": end-of-line
  38. "\C-a\C-xd": kill-region
  39. "\C-a\C-xy": copy-region-as-kill
  40. "\e[A": history-search-backward
  41. "\e[B": history-search-forward
  42. #TAB: menu-complete
  43. "\e[Z": menu-complete
  44. "\e[H": beginning-of-line
  45. "\e[F": end-of-line
  46. "u": undo
  47. "h": "\C-a\C-xm\C-a\C-xh"
  48. "H": "\C-a\C-xh"
  49. "\M-h": "\C-a\C-xm\C-a\C-x0"
  50. "\M-H": "\C-a\C-x0"
  51. "gh": "\C-a\C-x0\C-a\C-xm"
  52. "Gh": "\C-a\C-x0"
  53. "GH": "\C-a\C-x0"
  54. "l": "\C-a\C-xm\C-a\C-xl"
  55. "L": "\C-a\C-xl"
  56. "gl": "\C-a\C-x$\C-a\C-xm"
  57. "Gl": "\C-a\C-x$"
  58. "GL": "\C-a\C-x$"
  59. "\M-l": "\C-a\C-xm\C-a\C-x$"
  60. "\M-L": "\C-a\C-x$"
  61. "w": "\C-a\C-xm\C-a\C-xw"
  62. "W": "\C-a\C-xw"
  63. "\M-w": "\C-a\C-xm\C-a\C-xW"
  64. "\M-W": "\C-a\C-xW"
  65. "b": "\C-a\C-xm\C-a\C-xb"
  66. "B": "\C-a\C-xb"
  67. "\M-b": "\C-a\C-xm\C-a\C-xB"
  68. "\M-B": "\C-a\C-xB"
  69. "e": "\C-a\C-xm\C-a\C-xe"
  70. "E": "\C-a\C-xE"
  71. "\M-e": "\C-a\C-xm\C-a\C-xE"
  72. "\M-E": "\C-a\C-xE"
  73. "f": "\C-a\C-xm\C-a\C-xf"
  74. "F": "\C-a\C-xf"
  75. "\M-f": "\C-a\C-xm\C-a\C-xF"
  76. "\M-F": "\C-a\C-xF"
  77. "t": "\C-a\C-xm\C-a\C-xt"
  78. "T": "\C-a\C-xt"
  79. "\M-t": "\C-a\C-xm\C-a\C-xT"
  80. "\M-T": "\C-a\C-xT"
  81. "x": "\C-a\C-x0\C-a\C-xm\C-a\C-x$"
  82. ";": "\C-a\C-xm"
  83. "\M-;": exchange-point-and-mark
  84. "d": kill-region
  85. "gg": beginning-of-history
  86. "gk": beginning-of-history
  87. "gj": end-of-history
  88. "ge": end-of-history
  89. "c": "\C-a\C-xdi"
  90. "y": "\C-a\C-xy"
  91. "P": "\C-a\C-xhp"