Here is my keymap:
nmap <A-y> viW<Plug>VSurround]%a()<ESC>h"+pF(<CR>l
vmap <A-y> <Plug>VSurround]%a()<ESC>h"+pF(<CR>l
Which is a markdown link paste helper. It will make the word "Apple" to "[Apple](url in your clipboard)".
It works fine.
But when I want to undo it (change the text back to "Apple") I need press 3 times u
which is unconvenient for me.
How to make it atomic (just press one time u
)?
I do some search work but cant get related topic.