From 795e2b0e80c8fd79ef4bd20ee4200ca4deffb016 Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Thu, 22 Nov 2018 19:22:46 -0500 Subject: [PATCH] vim: Rework terminal mappings to work cross-vim NOTE: a couple limitations here: 1) Vim interprets arrows as escape sequences --> remapping escape is no-go 2) Alacritty cannot handle meta on mac (currently) --- vim/vimrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index d0d23a4..ad000d5 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -96,7 +96,7 @@ if (has("termguicolors") || has('gui_running')) && let &t_8b = "\[48;2;%lu;%lu;%lum" endif else - colorscheme elflord + colorscheme desert endif set background=dark " seems to need to be after gruvbox @@ -205,9 +205,14 @@ nnoremap k nnoremap h nnoremap l +" Terminal mappings +" NOTE: a couple limitations here: +" 1) Vim interprets arrows as escape sequences --> remapping escape is no-go +" 2) Alacritty cannot handle meta on mac (currently) +" +" With this in mind, the goal is to make cross-vim keys consistent if has('terminal') || has('nvim') - tnoremap - tnoremap + tnoremap endif "Map ctrl-p to toggle paste mode -- libgit2 0.28.4