Vim auto-pairs Setup Options

Source: Internet
Author: User

  1. let g:AutoPairs = {‘(‘:‘)‘, ‘[‘:‘]‘, ‘{‘:‘}‘,"‘":"‘",‘"‘:‘"‘}
    Set the symbol to be paired automatically
  2. let g:AutoPairs[‘<‘]=‘>‘
    Add symbols to auto-pair <>
  3. 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.
  4. let g:AutoPairsShortcutToggle = ‘<M-p>‘
    Sets the shortcut key for the plugin to open/close, which defaults to alt+p.
  5. let g:AutoPairsShortcutFastWrap = ‘<M-e>‘
    Sets the shortcut key that automatically adds parentheses to the text, which defaults to Alt+e.
  6. let g:AutoPairsShortcutJump = ‘<M-n>‘
    Sets the shortcut key to the next bracket pair, which defaults to Alt+n.
  7. let g:AutoPairsShortcutBackInsert = ‘<M-b>‘
    Sets the shortcut key for the Undo flight mode, which defaults to Alt+b.
  8. let g:AutoPairsMapBS = 1
    Map the BACKSPACE key to remove the pair of parentheses and quotation marks, which defaults to 1.
  9. let g:AutoPairsMapCh = 1
    Map the Ctrl+h key to remove the pair of parentheses and quotation marks, which defaults to 1.
  10. let g:AutoPairsMapCR = 1
    The ENTER key is mapped to newline and indented, and defaults to 1.
  11. 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.
  12. let g:AutoPairsMapSpace = 1
    Map the space key to add spaces on both sides of the parentheses, which defaults to 1.
  13. let g:AutoPairsFlyMode = 0
    Enable airplane mode, which defaults to 0.
  14. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.