let g:AutoPairs = {‘(‘:‘)‘, ‘[‘:‘]‘, ‘{‘:‘}‘,"‘":"‘",‘"‘:‘"‘}
Set the symbol to be paired automatically
let g:AutoPairs[‘<‘]=‘>‘
Add symbols to auto-pair <>
let b:AutoPairs = g:AutoParis
Set the symbol to be automatically paired, default to G:autopairs, and you can set different auto-match pairs for different file types by using automatic commands.
let g:AutoPairsShortcutToggle = ‘<M-p>‘
Sets the shortcut key for the plugin to open/close, which defaults to alt+p.
let g:AutoPairsShortcutFastWrap = ‘<M-e>‘
Sets the shortcut key that automatically adds parentheses to the text, which defaults to Alt+e.
let g:AutoPairsShortcutJump = ‘<M-n>‘
Sets the shortcut key to the next bracket pair, which defaults to Alt+n.
let g:AutoPairsShortcutBackInsert = ‘<M-b>‘
Sets the shortcut key for the Undo flight mode, which defaults to Alt+b.
let g:AutoPairsMapBS = 1
Map the BACKSPACE key to remove the pair of parentheses and quotation marks, which defaults to 1.
let g:AutoPairsMapCh = 1
Map the Ctrl+h key to remove the pair of parentheses and quotation marks, which defaults to 1.
let g:AutoPairsMapCR = 1
The ENTER key is mapped to newline and indented, and defaults to 1.
let g:AutoPairsCenterLine = 1
When G:AUTOPAIRSMAPCR is 1 o'clock and the text is at the bottom of the window, it is automatically moved to the middle of the window.
let g:AutoPairsMapSpace = 1
Map the space key to add spaces on both sides of the parentheses, which defaults to 1.
let g:AutoPairsFlyMode = 0
Enable airplane mode, which defaults to 0.
let g:AutoPairsMultilineClose = 1
Enable the out-of-line parenthesis pair, which defaults to 1, and 0 only jumps out of the same line of parentheses.
Reference: 80347797
Vim auto-pairs Setup Options