Created
June 19, 2024 19:25
-
-
Save maxfridbe/2afedeaf3c5be1fb3cb3e2656b66632f to your computer and use it in GitHub Desktop.
windows like config for helix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[editor] | |
true-color = true | |
color-modes = true | |
[keys.insert] | |
C-s = ["normal_mode", ":w", "insert_mode"] | |
C-q = ":quit!" | |
C-S-up = "extend_line_up" | |
S-up = ["extend_line_up"] | |
C-S-down = ["extend_line_down"] | |
S-down = ["extend_line_down"] | |
S-right = [ "extend_char_right"] | |
S-left = [ "extend_char_left"] | |
C-S-right = [ "extend_next_word_start"] | |
C-S-left = [ "extend_prev_word_start"] | |
C-c = [ "yank_main_selection_to_clipboard" ] | |
C-x = [ "yank_main_selection_to_clipboard", "delete_selection" ] | |
# Windows-like movement | |
C-left = [ "move_prev_word_start", "move_char_left", "move_char_right" ] | |
C-right = [ "move_next_word_start", "move_char_left", "move_char_right" ] | |
[keys.normal] | |
C-S-up = "extend_line_up" | |
S-up = ["extend_line_up"] | |
C-S-down = ["extend_line_down"] | |
S-down = ["extend_line_down"] | |
S-right = [ "extend_char_right"] | |
S-left = [ "extend_char_left"] | |
C-S-right = [ "extend_next_word_start"] | |
C-S-left = [ "extend_prev_word_start"] | |
#search for word under cursor | |
"`" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_next"] | |
"~" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_prev"] | |
C-s = [":w"] | |
C-c = [ "yank_main_selection_to_clipboard" ] | |
C-x = [ "yank_main_selection_to_clipboard", "delete_selection" ] | |
# Windows-like movement | |
C-left = [ "move_prev_word_start", "move_char_left", "move_char_right", "collapse_selection" ] | |
C-right = [ "move_next_word_start", "move_char_left", "move_char_right", "collapse_selection" ] | |
C-q = ":quit!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment