From b7dcc1f79c3c6d6b5ecb2fc419b21610162a29a3 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 15 Feb 2023 14:30:52 +0100 Subject: [PATCH] vim:keys: Map real to delete one word Map (i.e. Ctrl-Backspace) to delete one word in insert mode & co. as it is properly recognized in some terminals implementing [fixterm][1] (e.g. kitty and patched st). Keep the mapping for other terminals but reuse the mapping. [1]: http://www.leonerd.org.uk/hacks/fixterms/ --- .config/vim/vimrc.d/40-keys.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 8f8cb85..652a716 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -33,7 +33,8 @@ if (has('clipboard')) endif " Ctrl-Backspace should delete words in insert mode and on command-line. -noremap! +noremap! +map! " Correct word with best/first suggestion. noremap c 1z=