From fc04a6a6828695230a546c1d39eef27a7ee864fb Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 31 Jan 2023 00:04:54 +0100 Subject: [PATCH] vim:keys: Add leader mappings to switch the case I find myself quite often to type `gUl` but find that it has quite some brain overhead. We will see, if these mappings aid in this regard. --- .config/vim/vimrc.d/40-keys.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 749c3e3..5500d14 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -262,3 +262,9 @@ vnoremap = =gv " Center search results noremap n zzn + +" Switch to lower/upper case +nnoremap gUl +vnoremap gU +nnoremap gul +vnoremap gu