Skip to content
Better Rainbow Parentheses
Branch: master
Clone or download
Pull request Compare This branch is 12 commits ahead of kien:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload
plugin
screenshots
README.md

README.md

Rainbow Parentheses

example screenshot

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
You can’t perform that action at this time.