From a78c986a69d490c091ffd7f7f1253b3b95502ce6 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Tue, 3 Mar 2020 12:53:09 +0100 Subject: [PATCH] auto brackets closing + colors for them --- vim/init.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vim/init.vim b/vim/init.vim index 1056c4e..8f63d00 100644 --- a/vim/init.vim +++ b/vim/init.vim @@ -11,6 +11,7 @@ Plug 'airblade/vim-gitgutter' Plug 'junegunn/limelight.vim' Plug 'hashivim/vim-terraform' Plug 'bitc/vim-bad-whitespace' +Plug 'frazrepo/vim-rainbow' call plug#end() set title @@ -82,6 +83,7 @@ autocmd! User GoyoLeave Limelight! command! -bang -nargs=? -complete=dir Files \ call fzf#vim#files(, {'options': ['-e', '--layout=reverse', '--height=20%', '--preview', 'bat --color=always --tabs=2 --style=plain --theme="Monokai Extended" {}']}, 0) +let g:rainbow_active = 1 let g:terraform_fmt_on_save=1 let g:lightline = { \ 'colorscheme': 'powerlineish', @@ -100,3 +102,11 @@ let g:lightline = { function! LightLineReadonly() return &readonly && &filetype !=# 'help' ? 'RO' : '' endfunction + +inoremap " "" +inoremap ' '' +inoremap ( () +inoremap [ [] +inoremap { {} +inoremap { {}O +inoremap {; {};O