Skip to main content
16 events
when toggle format what by license comment
Dec 19, 2019 at 14:38 answer added stackzebra timeline score: 0
Dec 18, 2019 at 8:13 answer added Hotschke timeline score: 0
S Dec 18, 2019 at 4:13 history edited D. Ben Knoble CC BY-SA 4.0
some spelling, grammar; move the last paragraph to the place where it belongs
S Dec 18, 2019 at 4:13 history suggested guntbert CC BY-SA 4.0
some spelling, grammar; move the last paragraph to the place where it belongs
Dec 17, 2019 at 22:24 review Suggested edits
S Dec 18, 2019 at 4:13
Nov 29, 2019 at 21:49 comment added filbranden "Can you specify the exact keystrokes?" Yes, you can set variable g:AutoPairsShortcutFastWrap in your .vimrc, then the plug-in will use that (instead of the default of <M-e>) for "fast wrap" (assuming "fast wrap" behavior is what you really want here, sounds like it is...)
Nov 29, 2019 at 12:55 comment added Maxim Kim I would just go with <C-o>a if you are right next to the closing brace.
Nov 29, 2019 at 12:35 comment added Matt If you're okay with remapping then something like inoremap <whatever> <C-O>])<right> will do this.
Nov 29, 2019 at 12:26 comment added filbranden Take a look at the full Readme for auto-pairs. There's also Fly mode which you might find interesting. The original intent is that you'd type the closing bracket to get out of it and continue typing the expression. Other shortcut exists, the ones I mentioned earlier. If you want something different, please update the question to explain why these don't work for you and what you'd like to have instead...
Nov 29, 2019 at 12:25 comment added idankor Thanks again, @filbranden, I'm not sure how to use the "fast wrap". Can you specify the exact key strokes?
Nov 29, 2019 at 12:22 comment added filbranden Auto-pairs has two default mappings that might also help: <M-e> for "fast wrap" and <M-n> to jump to the next closed pair. It seems to me the former might fit your use case? <M-e> typically means you need to press "Alt-e" to access it. Does that help? Not sure if mapping the Return key to get out of a pair would be feasible, since you often want line breaks within a pair and that's what Return does there, right?
Nov 29, 2019 at 12:17 history edited idankor CC BY-SA 4.0
added 233 characters in body
Nov 29, 2019 at 12:15 comment added idankor Thanks for asking that. I forgot to mention that the solution you mentioned is available for me but from my subjective point of my personal comfort, this method for me is like using the arrow key for doing the job. I would like to "map" a key (perhaps even the return key) to do that in the mentioned particular case.
Nov 29, 2019 at 12:12 comment added filbranden If you're using "auto-pairs" plug-in, you should be able to type ) when over a closing paren to get out of it. Doesn't that work for you? (Happy to turn this into an answer if it does work for you and was what you were actually looking for...)
Nov 29, 2019 at 11:43 answer added dedowsdi timeline score: 2
Nov 29, 2019 at 11:04 history asked idankor CC BY-SA 4.0