From efd5df4f249a55b1f651ffb1f37a20bf6e33d6f4 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Tue, 15 Sep 2020 00:31:52 +0200 Subject: [PATCH] Change meaning of cw in vim to act like dw This is an inconsistency that bothers me. And getting into the habit of using ce seems to not hurt since it is still 'backwards' compatible to other configs. --- .config/vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 8d90420..da6c953 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -35,6 +35,13 @@ if (has('nvim')) endif " Put new window below/right of current set splitbelow splitright +" What is ce there for? cw should include whitespace like dw. +if (has('nvim')) + set cpoptions-=_ +else + nmap cw dwi + nmap cW dWi +endif " Keybinds ##################################################################### " Set leader key