From ec5eb5327ec43576138ca17e52cc16051a36fae7 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Fri, 1 May 2015 08:22:41 -0400 Subject: [PATCH] Started adding Rainbow Parens (not working) --- vim/vimrc | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 2c2681d..f5c02bd 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -3,16 +3,16 @@ if has('conceal') endif nnoremap autoformat! :%s/, /,:%s/ \/ /\/:%s/ {/{:%s/} /}:%s/ = /= command! WW %!sudo tee > /dev/null % -au VimResized * exe "normal! \=" -au BufRead,BufNewFile *.twig set filetype=htmljinja -au FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o -au FileType * :hi IndentGuidesOdd guibg=red ctermbg=239 -au FileType * :hi IndentGuidesEven guibg=white ctermbg=239 -au FileType css setlocal omnifunc=csscomplete#CompleteCSS -au FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags -au FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS -au FileType python setlocal omnifunc=pythoncomplete#Complete -au FileType xml setlocal omnifunc=xmlcomplete#CompleteTags +"TODO: Fix this +"let g:rbpt_loadcmd_toggle = 1 +"autocmd BufRead,BufNewFile * RainbowParenthesesActivate +""autocmd BufRead,BufNewFile * RainbowParenthesesToggle +""autocmd BufRead,BufNewFile * RainbowParenthesesLoadBraces +"autocmd BufRead,BufNewFile * RainbowParenthesesLoadRound +"autocmd BufRead,BufNewFile * RainbowParenthesesLoadSquare +"autocmd BufRead,BufNewFile * RainbowParenthesesLoadChevrons + + "match Error /\s\+$/ "nnoremap s xa "nnoremap :UndotreeToggle @@ -334,7 +334,9 @@ Plug 'vim-scripts/SyntaxRange' Plug 'PotatoesMaster/i3-vim-syntax' "i3 syntax | https://github.com/PotatoesMaster/i3-vim-syntax Plug 'https://github.com/fatih/vim-go' - " | https://github.com/fatih/vim-go + "go syntax | https://github.com/fatih/vim-go +Plug 'https://github.com/kien/rainbow_parentheses.vim' + "Colored parenthesis | https://github.com/kien/rainbow_parentheses.vim call plug#end() filetype plugin indent on if exists("+undofile")