mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-08 19:44:47 +08:00
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<c-y>, This will be expanded to <div clas="foo bar baz"></div> 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.
This commit is contained in:
@@ -147,7 +147,7 @@ function! s:install_plugin(mode, buffer)
|
|||||||
let key = g:user_emmet_leader_key . item.key
|
let key = g:user_emmet_leader_key . item.key
|
||||||
endif
|
endif
|
||||||
if len(maparg(key, item.mode)) == 0
|
if len(maparg(key, item.mode)) == 0
|
||||||
exe item.mode . 'map ' . buffer . ' <unique> ' . key . ' <plug>(' . item.plug . ')'
|
exe item.mode . 'map ' . buffer . ' <unique> ' . key . ' <c-g>u<plug>(' . item.plug . ')'
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user