Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
Add vim airline and rainbow brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
mtnalonso committed Jul 11, 2023
1 parent db8ee22 commit 92f0e6f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set ruler
syntax on
filetype plugin indent on

set encoding=utf-8

set tabstop=4
set shiftwidth=4
set expandtab
Expand All @@ -16,7 +18,7 @@ set hlsearch
set modeline

" Search down into subfolder
set path+=**
set path+=**
set wildmenu


Expand All @@ -37,6 +39,8 @@ Plug 'airblade/vim-gitgutter' " Git lint
Plug 'flazz/vim-colorschemes' " Colorschemes
Plug 'vim-python/python-syntax' " Python syntax
Plug 'sheerun/vim-polyglot' " Syntax highlight
Plug 'luochen1990/rainbow' " Rainbow brackets
Plug 'bling/vim-airline' " Vim airline
call plug#end()

" Git Gutter"
Expand All @@ -52,6 +56,9 @@ highlight GitGutterChange ctermfg=3
highlight GitGutterDelete ctermfg=1
highlight GitGutterChangeDelete ctermfg=4

" Rainbow brackets
let g:rainbow_active = 1

" Python syntax
let g:python_highlight_all = 1
let g:python_highlight_indent_errors = 0
Expand All @@ -67,13 +74,16 @@ let g:ctrlp_custom_ignore = {
\}

" Avoid indentation errors when pasting using tmux
if &term =~ "screen"
let &t_BE = "\e[?2004h"
let &t_BD = "\e[?2004l"
exec "set t_PS=\e[200~"
exec "set t_PE=\e[201~"
if &term =~ "screen"
let &t_BE = "\e[?2004h"
let &t_BD = "\e[?2004l"
exec "set t_PS=\e[200~"
exec "set t_PE=\e[201~"
endif

" Remove trailing characters after saving
autocmd BufWritePre * %s/\s\+$//e

nnoremap Ñ :NERDTreeToggle<CR>
nnoremap tt :syntax sync fromstart<CR>
Expand Down

0 comments on commit 92f0e6f

Please sign in to comment.