From 67fe033b2b56b6f631a4c7a1179865178665f2a4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 28 Jul 2019 21:38:47 -0400 Subject: [PATCH] Break undo before delete word Closes https://github.com/tpope/vim-sensible/issues/161 --- plugin/sensible.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 0c65b2f..2d0404d 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -90,6 +90,11 @@ if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' runtime! macros/matchit.vim endif -inoremap u +if empty(mapcheck('', 'i')) + inoremap u +endif +if empty(mapcheck('', 'i')) + inoremap u +endif " vim:set ft=vim et sw=2: