vim: add use_rainbow option
parent
eb5437946f
commit
603af787bb
23
vim/vimrc
23
vim/vimrc
|
@ -48,14 +48,15 @@ let _agw.colors=[
|
|||
\ 'base16-unikitty-dark',
|
||||
\]
|
||||
|
||||
let _agw.columns=80 " GUI columns
|
||||
let _agw.rows=24 " GUI rows
|
||||
let _agw.cr_scheme=-2 " color from s:colors, -1=random, -2=default
|
||||
let _agw.use_number=0 " 0=no number, 1=enable relativenumber, 2=enable number
|
||||
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.columns=80 " GUI columns
|
||||
let _agw.rows=24 " GUI rows
|
||||
let _agw.cr_scheme=-2 " color from s:colors, -1=random, -2=default
|
||||
let _agw.use_number=0 " 0=no number, 1=enable relativenumber, 2=enable number
|
||||
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
|
||||
au FileType c,cpp,cs,java,php,ruby,rust,python,go,zscript,html,scheme,racket,lisp,json au BufEnter <buffer> RainbowToggleOn
|
||||
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