Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about g:AutoPairsShortcutFastWrap #357

Open
pinggit opened this issue Nov 6, 2022 · 1 comment
Open

about g:AutoPairsShortcutFastWrap #357

pinggit opened this issue Nov 6, 2022 · 1 comment

Comments

@pinggit
Copy link

pinggit commented Nov 6, 2022

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?

@LunarWatcher
Copy link

LunarWatcher commented Nov 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants