jiangmiao / auto-pairs

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

about g:AutoPairsShortcutFastWrap #357

Open pinggit opened 1 year ago

pinggit commented 1 year ago
g:AutoPairsShortcutFastWrap

Default: '<M-e>'

Fast wrap the word. all pairs will be consider as a block (include <>).
(|)'hello' after fast wrap at |, the word will be ('hello')
(|)<hello> after fast wrap at |, the word will be (<hello>)

for me the M- never works in my terminal (mintty) so I did this:

let g:AutoPairsShortcutFastWrap = '<C-e>'

and it works.

but I'm expecting it also works for """, when I press """, I got """|""", this is good.

so far, so good.

now, I want to make the closing """ to include abc, like this """abc""" I press C-e, I only move my cursor to """"""|abc, I press C-e again, I only got """""abc"

so how to make my C-e to work for """ also?

LunarWatcher commented 1 year ago

so how to make my C-e to work for """ also?

My fork has support for multibyte fast wrap (and I believe it's enabled by default), but jiangmiao's original repo does not support it at all.