From f44cf8284d99252da90986bfe9b517d05a83f327 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 2 May 2021 18:33:02 -0400 Subject: [PATCH] vim terminal mode adjustment --- alacritty.configlink/alacritty.yml | 4 +++- nvim.configlink/settings/custom.vim | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/alacritty.configlink/alacritty.yml b/alacritty.configlink/alacritty.yml index c88b661..a6750ed 100644 --- a/alacritty.configlink/alacritty.yml +++ b/alacritty.configlink/alacritty.yml @@ -595,7 +595,9 @@ key_bindings: - { key: O, mods: Super, chars: "edit\x0D" } # CMD-O opens file in vim - { key: R, mods: Super, chars: "recent\x0D" } # CMD-R opens file in vim - - { key: Return, mods: Shift, chars: "\x1b[13;2u" } + - { key: Return, mods: Shift, chars: "\x1b[13;2u" } + - { key: Return, mods: Control, chars: "\x1b[13;5u" } + - { key: Return, mods: Control|Shift, chars: "\x1b[13;6u" } - { key: N, mods: Command, action: SpawnNewInstance } - { key: PageUp, action: ScrollPageUp } - { key: PageUp, mode: Alt, chars: "\x1B[5~" } diff --git a/nvim.configlink/settings/custom.vim b/nvim.configlink/settings/custom.vim index 2eeea49..04fb83e 100644 --- a/nvim.configlink/settings/custom.vim +++ b/nvim.configlink/settings/custom.vim @@ -98,8 +98,8 @@ endfunction command! ZoomToggle call s:ZoomToggle() nnoremap z :ZoomToggle -" Exit terminal mode (requires Alacritty escape) -tnoremap +" Exit terminal mode +tnoremap " Reload Vimrc settings nnoremap rr :Refresh