wting/rainbow_parentheses.vim

Fork changes: Better colors for consecutive parentheses, better documentation.

★ 0Forks 0VimLGitHub ↗Compare

README

Rainbow Parentheses

Commands:

:RainbowParenthesesToggle       " toggle it on/off
:RainbowParenthesesLoadRound    " (), toggle default
:RainbowParenthesesLoadSquare   " []
:RainbowParenthesesLoadBraces   " {}
:RainbowParenthesesLoadChevrons " <>

Always On:

augroup RainbowParentheses
    au!
    au VimEnter * RainbowParenthesesToggle
    au Syntax * RainbowParenthesesLoadRound
    au Syntax * RainbowParenthesesLoadSquare
    au Syntax * RainbowParenthesesLoadBraces
augroup END

Options:

set color ordering

  • left column = vim
  • right column = gvim
  • order is from inner to outer

If less than 16 entries, then existing list of colors repeat until 16.

let g:rbpt_colorpairs = [
    \ ['3',         '808000'],
    \ ['6',         '008080'],
    \ ['202',       'ff5f00'],
    \ ['11',        'ffff00'],
    \ ['13',        'ff00ff'],
    \ ['10',        '00ff00'],
    \ ['45',        '00dfff'],
    \ ['9',         'ff0000'],
    \ ]

max parentheses to match

let g:rbpt_max = 16

bold parentheses

let g:rbpt_bold = 0

unknown

let g:rbpt_loadcmd_toggle = 0

Contributors

kienwtingthashDiablo-D3

Issues