more vim like stuff
This commit is contained in:
parent
48c9f9f456
commit
28062791da
1 changed files with 30 additions and 0 deletions
30
config.toml
30
config.toml
|
@ -39,9 +39,39 @@ C-g = [
|
|||
":redraw",
|
||||
":reload-all"
|
||||
]
|
||||
G = "@ge"
|
||||
H = "goto_line_start"
|
||||
L = "goto_line_end"
|
||||
A-j = "@<C-d>"
|
||||
A-k = "@<C-u>"
|
||||
|
||||
# Stolen stuff for being more vim like
|
||||
# Undoing the 'd' + motion commands restores the selection which is annoying
|
||||
u = ["undo", "collapse_selection"]
|
||||
|
||||
[keys.insert]
|
||||
C-h = "move_char_left"
|
||||
C-j = "move_line_down"
|
||||
C-k = "move_line_up"
|
||||
C-l = "move_char_right"
|
||||
|
||||
[keys.select]
|
||||
# Muscle memory
|
||||
"{" = ["extend_to_line_bounds", "goto_prev_paragraph"]
|
||||
"}" = ["extend_to_line_bounds", "goto_next_paragraph"]
|
||||
0 = "goto_line_start"
|
||||
"$" = "goto_line_end"
|
||||
"^" = "goto_first_nonwhitespace"
|
||||
G = "goto_file_end"
|
||||
C = ["goto_line_start", "extend_to_line_bounds", "change_selection"]
|
||||
"%" = "match_brackets"
|
||||
u = ["switch_to_lowercase", "collapse_selection", "normal_mode"]
|
||||
U = ["switch_to_uppercase", "collapse_selection", "normal_mode"]
|
||||
|
||||
# Clipboards over registers ye ye
|
||||
d = ["yank_main_selection_to_clipboard", "delete_selection"]
|
||||
x = ["yank_main_selection_to_clipboard", "delete_selection"]
|
||||
y = ["yank_main_selection_to_clipboard", "normal_mode", "flip_selections", "collapse_selection"]
|
||||
Y = ["extend_to_line_bounds", "yank_main_selection_to_clipboard", "goto_line_start", "collapse_selection", "normal_mode"]
|
||||
p = "replace_selections_with_clipboard" # No life without this
|
||||
P = "paste_clipboard_before"
|
||||
|
|
Loading…
Add table
Reference in a new issue