vim: add use_rainbow option
parent
eb5437946f
commit
603af787bb
|
@ -56,6 +56,7 @@ let _agw.use_list=1 " enable whitespace visibility (2=also newlines)
|
|||
let _agw.use_tagbar=0 " enable tagbar addon
|
||||
let _agw.use_vsp=0 " enable vertical split on enter
|
||||
let _agw.use_ruby=0 " enable ruby scripts
|
||||
let _agw.use_rainbow=0 " enable rainbow addon
|
||||
|
||||
runtime! vconf
|
||||
|
||||
|
@ -376,7 +377,9 @@ com W execute 'w !sudo tee > /dev/null %' | edit!
|
|||
au FileType c,cpp,cs,java,php,ruby,rust,python,go,zscript,markdown au BufWritePre <buffer> call _agw.strip_white()
|
||||
|
||||
" Enable rainbow braces
|
||||
if _agw.use_rainbow != 0
|
||||
au FileType c,cpp,cs,java,php,ruby,rust,python,go,zscript,html,scheme,racket,lisp,json au BufEnter <buffer> RainbowToggleOn
|
||||
endif
|
||||
|
||||
" markdown sucks
|
||||
au FileType markdown set comments+=fb:- comments-=b:- indentexpr=
|
||||
|
@ -548,6 +551,7 @@ nn Q gqap
|
|||
|
||||
" Rainbow Config -------------------------------------------------------------|
|
||||
|
||||
if _agw.use_rainbow != 0
|
||||
let rainbow_conf = {
|
||||
\ 'guifgs': ['#ff533d', '#ff973d', '#ffe13d', '#91ff3d', '#3dffd8', '#3daeff', '#6a3dff', '#ee3dff'],
|
||||
\ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'],
|
||||
|
@ -588,5 +592,6 @@ let rainbow_conf = {
|
|||
\ 'sh': 0,
|
||||
\ }
|
||||
\}
|
||||
end
|
||||
|
||||
" EOF
|
||||
|
|
Loading…
Reference in New Issue