Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kien/rainbow_parentheses.vim
Better Rainbow Parentheses
https://github.com/kien/rainbow_parentheses.vim
Last synced: 9 days ago
JSON representation
Better Rainbow Parentheses
- Host: GitHub
- URL: https://github.com/kien/rainbow_parentheses.vim
- Owner: kien
- Created: 2011-10-12T13:59:23.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-06-14T20:10:33.000Z (over 7 years ago)
- Last Synced: 2024-08-07T18:47:27.647Z (3 months ago)
- Language: VimL
- Homepage:
- Size: 160 KB
- Stars: 949
- Watchers: 26
- Forks: 121
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Better Rainbow Parentheses
### Options:
```vim
let g:rbpt_colorpairs = [
\ ['brown', 'RoyalBlue3'],
\ ['Darkblue', 'SeaGreen3'],
\ ['darkgray', 'DarkOrchid3'],
\ ['darkgreen', 'firebrick3'],
\ ['darkcyan', 'RoyalBlue3'],
\ ['darkred', 'SeaGreen3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['brown', 'firebrick3'],
\ ['gray', 'RoyalBlue3'],
\ ['black', 'SeaGreen3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['Darkblue', 'firebrick3'],
\ ['darkgreen', 'RoyalBlue3'],
\ ['darkcyan', 'SeaGreen3'],
\ ['darkred', 'DarkOrchid3'],
\ ['red', 'firebrick3'],
\ ]
``````vim
let g:rbpt_max = 16
``````vim
let g:rbpt_loadcmd_toggle = 0
```### Commands:
```vim
:RainbowParenthesesToggle " Toggle it on/off
:RainbowParenthesesLoadRound " (), the default when toggling
:RainbowParenthesesLoadSquare " []
:RainbowParenthesesLoadBraces " {}
:RainbowParenthesesLoadChevrons " <>
```### Always On:
```vim
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
```