From 08eb534c42f2da7905beeadb8ea94b75701f404d Mon Sep 17 00:00:00 2001 From: gilgamesh Date: Thu, 17 Jul 2014 16:47:41 -0300 Subject: [PATCH] Small fix related to VIM Tip #436 http://vim.wikia.com/wiki/Recover_from_accidental_Ctrl-U Suppose you do the following: div.foo.bar.baz, This will be expanded to
Then you realize that you wanted yyy instead of baz. You press ESC and u and notice that you don't have your original string in the undo log (div.foo.bar.baz). This patch fixes this behaviour. --- plugin/emmet.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/emmet.vim b/plugin/emmet.vim index 46ca45a..7f597cd 100644 --- a/plugin/emmet.vim +++ b/plugin/emmet.vim @@ -147,7 +147,7 @@ function! s:install_plugin(mode, buffer) let key = g:user_emmet_leader_key . item.key endif if len(maparg(key, item.mode)) == 0 - exe item.mode . 'map ' . buffer . ' ' . key . ' (' . item.plug . ')' + exe item.mode . 'map ' . buffer . ' ' . key . ' u(' . item.plug . ')' endif endfor endfunction