default.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. normal:
  2. left: cursor::move_left
  3. right: cursor::move_right
  4. up: cursor::move_up
  5. down: cursor::move_down
  6. ctrl-c: app::exit
  7. i: app::to_insert_mode
  8. ':': app::to_command_mode
  9. a:
  10. - app::to_insert_mode
  11. - cursor::move_right
  12. shift-A:
  13. - app::to_insert_mode
  14. - cursor::move_to_end_of_line
  15. shift-I:
  16. - app::to_insert_mode
  17. - cursor::move_to_start_of_line
  18. backspace: cursor::move_left
  19. escape: normal::reset
  20. shift-L: cursor::move_to_end_of_line
  21. shift-H: cursor::move_to_start_of_line
  22. shift-T: monitor::scroll_to_first_line
  23. shift-B: monitor::scroll_to_last_line
  24. shift-G: normal::move_to_target_line
  25. shift-O:
  26. - cursor::move_to_start_of_line
  27. - buffer::new_line
  28. o:
  29. - cursor::move_to_end_of_line
  30. - buffer::new_line
  31. - cursor::move_down
  32. j: normal::move_down_n
  33. k: normal::move_up_n
  34. h: normal::move_left_n
  35. l: normal::move_right_n
  36. d: app::to_delete_mode
  37. w: app::to_workspace_mode
  38. /: app::to_search_mode
  39. n: normal::move_to_next_words
  40. b: normal::move_to_prev_words
  41. e: normal::move_to_next_words_end
  42. u: buffer::undo
  43. ctrl-r: buffer::redo
  44. num: normal::count_cmd
  45. shift-R: app::to_replace_mode
  46. insert:
  47. escape: app::to_normal_mode
  48. left: cursor::move_left
  49. right: cursor::move_right
  50. up: cursor::move_up
  51. down: cursor::move_down
  52. ctrl-c: app::exit
  53. ctrl-s: buffer::save_file
  54. ctrl-z: buffer::undo
  55. enter:
  56. - buffer::new_line
  57. - cursor::move_down
  58. - cursor::move_to_start_of_line
  59. backspace: insert::backspace
  60. tab: buffer::insert_tab
  61. _:
  62. - buffer::insert_char
  63. command:
  64. escape: command::to_normal_mode
  65. backspace: command::backspace
  66. enter: command::commit_and_execute
  67. _:
  68. - command::insert_command
  69. workspace:
  70. up: workspace::move_up
  71. down: workspace::move_down
  72. enter: workspace::enter
  73. escape: workspace::to_normal_mode
  74. ctrl-c: app::exit
  75. search:
  76. /:
  77. - search::clear
  78. - app::to_search_mode
  79. backspace: search::backspace
  80. escape:
  81. - search::clear
  82. - app::to_normal_mode
  83. enter: search::exec_search
  84. up: search::last_result
  85. down: search::next_result
  86. ctrl-c: app::exit
  87. _: search::input_search_data
  88. delete:
  89. ctrl-c: app::exit
  90. escape: app::to_normal_mode
  91. w:
  92. - delete::delete_words
  93. - app::to_normal_mode
  94. d:
  95. - delete::delete_lines
  96. - cursor::move_to_start_of_line
  97. - app::to_normal_mode
  98. replace:
  99. escape: app::to_normal_mode
  100. left: cursor::move_left
  101. right: cursor::move_right
  102. up: cursor::move_up
  103. down: cursor::move_down
  104. ctrl-c: app::exit
  105. ctrl-s: buffer::save_file
  106. ctrl-z: buffer::undo
  107. enter:
  108. - buffer::new_line
  109. - cursor::move_down
  110. - cursor::move_to_start_of_line
  111. backspace: insert::backspace
  112. tab: buffer::insert_tab
  113. _:
  114. - buffer::insert_char_on_replace