Break undo before delete word

Closes https://github.com/tpope/vim-sensible/issues/161
This commit is contained in:
Tim Pope
2019-07-28 21:38:47 -04:00
parent 8db5a732ef
commit 67fe033b2b

View File

@@ -90,6 +90,11 @@ if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
runtime! macros/matchit.vim
endif
inoremap <C-U> <C-G>u<C-U>
if empty(mapcheck('<C-U>', 'i'))
inoremap <C-U> <C-G>u<C-U>
endif
if empty(mapcheck('<C-W>', 'i'))
inoremap <C-W> <C-G>u<C-W>
endif
" vim:set ft=vim et sw=2: