The ULTIMATE AUTOPAIR plugin
Intro
The ULTIMATE AUTOPAIR plugin, finally an autopair plugin with everything one needs. This plugin aims to provide as many features as possible for inserting pairs. Some say that it is a bit bloated, I can’t argue with that. Extending the plugin is easy both vertically and horizontally.
What it can do
- Cmd-line support
- Filters both inside and outside of strings (with treesitter)
- Doesn’t add unbalanced pairs
- Creating pairs with rules
- Fastwarp support
- Space, backspace, and newline support
- Almost everything is can be configured
- And so much more
Examples
- Smart pair
|())
>(
>(|())
- Fly over other parentheses
([{|}] )
>)
>([{}] )|
- Surround string
|'foo'
>(
>('foo')
- Smart escape quote
'\|a'
>'
>'\'|\'a'
- Delete multi-char
/*|*/
><BS>
>|
- Fastwarp
(|){1,2},foo
><A-e>
>({1,2}|),foo
><A-e>
>({1,2},foo|)
- String filter
| ")"
>(
>(|) ")"
- Don’t be stupid
|)
>)
>)|)