auto-pairs icon indicating copy to clipboard operation
auto-pairs copied to clipboard

about g:AutoPairsShortcutFastWrap

Open pinggit opened this issue 3 years ago • 1 comments

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.

  • now let's say I already have abc, and
  • I move my cursor to |abc, and
  • I press """|abc, and
  • I got """|"""abc

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?

pinggit avatar Nov 06 '22 16:11 pinggit

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.

LunarWatcher avatar Nov 06 '22 16:11 LunarWatcher