junegunn / rainbow_parentheses.vim

:rainbow: Simpler Rainbow Parentheses
377 stars 24 forks source link

Using Rainbow Parenthesis #4

Closed pickfire closed 9 years ago

pickfire commented 9 years ago

I hope you can add the usage of Rainbow Parenthesis in README.md.

And can I use call rainbowparenthesis to enable Rainbow Parenthesis in ~/.vimrc?

junegunn commented 9 years ago

The README page already has enough information to get you started.

call rainbowparenthesis

Where did you get that? Just use the commands shown in the README page.

pickfire commented 9 years ago

What about auto intialization?

junegunn commented 9 years ago

It's also on the page.

pickfire commented 9 years ago
" Activation based on file type
augroup rainbow_lisp
  autocmd!
  autocmd FileType lisp,clojure,scheme RainbowParentheses
augroup END

It doesn't show how to use RainbowParentheses for all time and I found out that using autocommand seems a bit slow for plugins.