From 67c5365a5dd360cb89520622796c42d849a8b243 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 10 Nov 2021 01:26:02 +0100 Subject: [PATCH] vimrc: fix meta (here alt) keys --- .vim/vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index a8bffd1..acb84ca 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -542,5 +542,16 @@ highlight ColorColumn ctermbg=0 set cursorlineopt=number syntax sync minlines=256 + +" fix meta-keys which generate a .. z +let c='a' +while c <= 'z' + exec "set =\e".c + exec "imap \e".c." " + let c = nr2char(1+char2nr(c)) +endw +set =a +imap a + nnoremap ve :e $MYVIMRC nnoremap vr :source $MYVIMRC