From f8485e03e37eedcd417c82191d15c2c3f5606099 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Mon, 2 Nov 2020 01:59:28 +0100 Subject: [PATCH] vim: Add Umlaute + sz and merge redundant bindings Add bindings for typing Umlaute and sz. Merge redundant bindings that are bound in multiple modes. --- .config/vim/vimrc | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 9350bd7..03b9279 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -105,24 +105,27 @@ endif " Interact with the system clipboard if (has('clipboard') || has('nvim')) - nnoremap y "+y - nnoremap d "+d - nnoremap p "+p - nnoremap P "+P - - vnoremap y "+y - vnoremap d "+d - vnoremap p "+p - vnoremap P "+P + noremap y "+y + noremap d "+d + noremap p "+p + noremap P "+P endif " Ctrl-Backspace should delete words in insert mode and on command-line. -inoremap -cnoremap +noremap! " Correct word with best/first suggestion. noremap c 1z= +" Umlaute and sz +map! ae ä +map! Ae Ä +map! oe ö +map! Oe Ö +map! ue ü +map! Ue Ü +map! sz ß + " Aesthetics ################################################################### " Use 24-bit (true-color) mode if (has('termguicolors'))