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.
This commit is contained in:
2020-09-15 00:31:52 +02:00
parent 746dc36c07
commit efd5df4f24

View File

@@ -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