Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bounceme/poppy.vim
vim port of highlightparentheses.el
https://github.com/bounceme/poppy.vim
rainbows
Last synced: 18 days ago
JSON representation
vim port of highlightparentheses.el
- Host: GitHub
- URL: https://github.com/bounceme/poppy.vim
- Owner: bounceme
- Created: 2017-02-01T18:23:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T05:28:10.000Z (almost 7 years ago)
- Last Synced: 2024-10-31T13:15:09.376Z (2 months ago)
- Topics: rainbows
- Language: Vim script
- Size: 9.77 KB
- Stars: 25
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# poppy.vim
vim port of [highlightparentheses.el](https://github.com/tsdh/highlight-parentheses.el) which gives rainbow parens propagating from the cursorEnabled with autocmds ( :h autocommand )
example:
`au! cursormoved * call PoppyInit()`
or:
`au! cursormoved *.lisp call PoppyInit()`
or even make a mapping:
```
augroup Poppy
au!
augroup END
nnoremap hp :call clearmatches() \| let g:poppy = -get(g:,'poppy',-1) \|
\ exe 'au! Poppy CursorMoved *' . (g:poppy > 0 ? ' call PoppyInit()' : '')
```modify coloring by changing `g:poppyhigh`, which is a list of highlight group names.
If you want only 1 paren level highlighted, let `g:poppyhigh` to a list with 1 group name.
If you want the highlighting to include matches which are under the cursor, like the matchparen plugin
included with vim, `let g:poppy_point_enable = 1` .