jiangmiao / auto-pairs

Vim plugin, insert or delete brackets, parens, quotes in pair
http://www.vim.org/scripts/script.php?script_id=3599
4.11k stars 373 forks source link

Wrap parentheses around existing word #287

Closed antoyo closed 4 years ago

antoyo commented 4 years ago

Hi. Let's say I have the following:

10

And I want to transform it into:

function(10)

How would I do that?

If I type function( before 10 I get:

function()10

Which is not what I want. Thanks.

dseeni commented 4 years ago

There are mapping for that already set these commands: let g:AutoPairsShortcutToggle= let g:AutoPairsShortcutFastWrap= let g:AutoPairsShortcutJump= let g:AutoPairsShortcutBackInsert=

Fast wrap is what you want