# --------------------------------- General -------------------------------------------- [[keymaps]] key = "F1" command = "palette.command" # --------------------------------- Basic editing --------------------------------------- [[keymaps]] key = "alt+up" command = "move_line_up" mode = "i" [[keymaps]] key = "alt+down" command = "move_line_down" mode = "i" [[keymaps]] key = "Delete" command = "delete_forward" mode = "i" [[keymaps]] key = "backspace" command = "delete_backward" mode = "i" [[keymaps]] key = "Home" command = "line_start_non_blank" [[keymaps]] key = "End" command = "line_end" [[keymaps]] key = "PageUp" command = "page_up" [[keymaps]] key = "PageDown" command = "page_down" [[keymaps]] key = "Ctrl+PageUp" command = "scroll_up" [[keymaps]] key = "Ctrl+PageDown" command = "scroll_down" # ------------------------------------ Multi cursor ------------------------------------- [[keymaps]] key = "alt+I" command = "insert_cursor_end_of_line" mode = "i" # --------------------------------- Rich Lanaguage Editing ---------------------------- [[keymaps]] key = "F12" command = "goto_definition" # ------------------------------------ Navigation ------------------------------------- [[keymaps]] key = "F8" command = "next_error" [[keymaps]] key = "shift+F8" command = "previous_error" [[keymaps]] key = "ctrl+-" command = "jump_location_backward" mode = "i" [[keymaps]] key = "ctrl+_" command = "jump_location_forward" mode = "i" # --------------------------------- Integrated Terminal ------------------------------ [[keymaps]] key = "Ctrl+`" command = "toggle_terminal_focus" # ------------------------------------ ------------ ------------------------------------- [[keymaps]] key = "tab" command = "jump_to_next_snippet_placeholder" when = "in_snippet" mode = "i" [[keymaps]] key = "shift+tab" command = "jump_to_prev_snippet_placeholder" when = "in_snippet" mode = "i" [[keymaps]] key = "esc" command = "clear_search" when = "search_focus" [[keymaps]] key = "ctrl+m" command = "list.select" when = "list_focus" [[keymaps]] key = "enter" command = "list.select" when = "list_focus" [[keymaps]] key = "ctrl+p" command = "list.previous" when = "list_focus" [[keymaps]] key = "up" command = "list.previous" when = "list_focus" [[keymaps]] key = "ctrl+n" command = "list.next" when = "list_focus" [[keymaps]] key = "down" command = "list.next" when = "list_focus" [[keymaps]] key = "o" command = "list.expand" when = "list_focus" mode = "n" [[keymaps]] key = "/" command = "palette.line" mode = "n" [[keymaps]] key = "esc" command = "modal.close" when = "modal_focus" [[keymaps]] key = "ctrl+b" command = "left" mode = "i" [[keymaps]] key = "ctrl+f" command = "right" mode = "i" [[keymaps]] key = "right" command = "right" [[keymaps]] key = "left" command = "left" [[keymaps]] key = "up" command = "up" when = "!list_focus" [[keymaps]] key = "down" command = "down" when = "!list_focus" [[keymaps]] key = "ctrl+h" command = "delete_backward" mode = "i" [[keymaps]] key = "enter" command = "insert_new_line" when = "!list_focus" mode = "i" [[keymaps]] key = "shift+enter" command = "search_backward" when = "search_focus" mode = "i" [[keymaps]] key = "tab" command = "insert_tab" when = "!in_snippet" mode = "i" [[keymaps]] key = "ctrl+m" command = "insert_new_line" when = "!list_focus" mode = "i" # ------------------------------------ Modal ----------------------------------------- [[keymaps]] key = "esc" command = "normal_mode" mode = "niv" when = "!search_focus" [[keymaps]] key = ":" command = "palette.command" mode = "n" [[keymaps]] key = "G" command = "go_to_line_deault_last" mode = "nv" [[keymaps]] key = "g g" command = "go_to_line_deault_first" mode = "nv" [[keymaps]] key = "h" command = "left" mode = "nv" [[keymaps]] key = "j" command = "down" mode = "nv" [[keymaps]] key = "k" command = "up" mode = "nv" [[keymaps]] key = "l" command = "right" mode = "nv" [[keymaps]] key = "a" command = "append" mode = "n" [[keymaps]] key = "A" command = "append_end_of_line" mode = "n" [[keymaps]] key = "i" command = "insert_mode" mode = "n" [[keymaps]] key = "u" command = "undo" mode = "n" [[keymaps]] key = "ctrl+r" command = "redo" mode = "n" [[keymaps]] key = "ctrl+i" command = "jump_location_forward" mode = "n" [[keymaps]] key = "ctrl+o" command = "jump_location_backward" mode = "n" [[keymaps]] key = "ctrl+n" command = "goto_definition" mode = "n" [[keymaps]] key = "g d" command = "goto_definition" mode = "n" [[keymaps]] key = "p" command = "paste" mode = "nv" [[keymaps]] key = "J" command = "join_lines" mode = "n" [[keymaps]] key = "y" command = "yank" mode = "v" [[keymaps]] key = "x" command = "delete_forward" mode = "nv" [[keymaps]] key = "ctrl+p" command = "get_references" mode = "n" [[keymaps]] key = "s" command = "delete_forward_and_insert" mode = "nv" [[keymaps]] key = "I" command = "insert_first_non_blank" mode = "nv" [[keymaps]] key = "o" command = "new_line_below" mode = "nv" [[keymaps]] key = "0" command = "line_start" mode = "nv" [[keymaps]] key = "^" command = "line_start_non_blank" mode = "nv" [[keymaps]] key = "$" command = "line_end" mode = "nv" [[keymaps]] key = "w" command = "word_forward" mode = "nv" [[keymaps]] key = "e" command = "word_end_forward" mode = "nv" [[keymaps]] key = "b" command = "word_backward" mode = "nv" [[keymaps]] key = "O" command = "new_line_above" mode = "nv" [[keymaps]] key = "ctrl+e" command = "scroll_down" mode = "nv" [[keymaps]] key = "ctrl+y" command = "scroll_up" mode = "nv" [[keymaps]] key = "ctrl+u" command = "page_up" mode = "nv" [[keymaps]] key = "ctrl+d" command = "page_down" mode = "nv" [[keymaps]] key = "z z" command = "center_of_window" mode = "nv" [[keymaps]] key = "d" command = "delete_forward" mode = "v" [[keymaps]] key = "f" command = "inline_find_right" mode = "nv" [[keymaps]] key = "F" command = "inline_find_left" mode = "nv" [[keymaps]] key = ";" command = "repeat_last_inline_find" mode = "nv" [[keymaps]] key = "d" command = "motion_mode_delete" mode = "n" [[keymaps]] key = ">" command = "motion_mode_indent" mode = "n" [[keymaps]] key = "<" command = "motion_mode_outdent" mode = "n" [[keymaps]] key = "y" command = "motion_mode_yank" mode = "n" [[keymaps]] key = "*" command = "search_whole_word_forward" mode = "nv" [[keymaps]] key = "n" command = "search_forward" mode = "nv" [[keymaps]] key = "N" command = "search_backward" mode = "nv" [[keymaps]] key = "%" command = "match_pairs" mode = "nv" [[keymaps]] key = "] )" command = "next_unmatched_right_bracket" mode = "nv" [[keymaps]] key = "[ (" command = "previous_unmatched_left_bracket" mode = "nv" [[keymaps]] key = "] }" command = "next_unmatched_right_curly_bracket" mode = "nv" [[keymaps]] key = "[ {" command = "previous_unmatched_left_curly_bracket" mode = "nv" [[keymaps]] key = "v" command = "toggle_visual_mode" mode = "nv" [[keymaps]] key = "V" command = "toggle_linewise_visual_mode" mode = "nv" [[keymaps]] key = "ctrl+v" command = "toggle_blockwise_visual_mode" mode = "nv" [[keymaps]] key = "ctrl+w l" command = "split_right" mode = "n" [[keymaps]] key = "ctrl+w h" command = "split_left" mode = "n" [[keymaps]] key = "ctrl+w j" command = "split_down" mode = "n" [[keymaps]] key = "ctrl+w k" command = "split_up" mode = "n" [[keymaps]] key = "ctrl+w s" command = "split_horizontal" mode = "n" [[keymaps]] key = "ctrl+w v" command = "split_vertical" mode = "n" [[keymaps]] key = "space" command = "toggle_code_lens" mode = "nv" [[keymaps]] key = ">" command = "indent_line" mode = "v" [[keymaps]] key = "<" command = "outdent_line" mode = "v"