]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/vim/files/vimrc
Add tagline to vim
[max/saltfiles.git] / states / vim / files / vimrc
index bae66ff1f8414f9d8016e6c61498aa700d317dc2..1fc97881cbbe1d8dc1e9ff8174d80021c241d656 100644 (file)
@@ -14,7 +14,6 @@ Plugin 'jelera/vim-javascript-syntax'
 Plugin 'noahfrederick/vim-noctu'
 Plugin 'pangloss/vim-javascript'
 Plugin 'Yggdroot/indentLine'
-Plugin 'Raimondi/delimitMate'
 Plugin 'scrooloose/syntastic'
 Plugin 'ternjs/tern_for_vim'
 Plugin 'docunext/closetag.vim'
@@ -40,6 +39,8 @@ Plugin 'lepture/vim-jinja'
 Plugin 'aklt/plantuml-syntax'
 Plugin 'psf/black'
 Plugin 'vim-python/python-syntax'
+Plugin 'luochen1990/rainbow'
+Plugin 'majutsushi/tagbar'
 
 " All of your Plugins must be added before the following line
 call vundle#end()            " required
@@ -119,6 +120,8 @@ let g:netrw_silent = 1
 
 " Set folding
 set foldmethod=syntax
+nnoremap <space> za
+vnoremap <space> zf
 
 " Better saving behaviour for go
 let g:go_fmt_experimental = 1
@@ -144,3 +147,15 @@ let g:python_highlight_string_format = 1
 let g:python_highlight_string_templates = 1
 let g:python_highlight_class_vars = 1
 let g:python_highlight_operators = 1
+
+" Python indent
+autocmd FileType python setlocal foldmethod=indent foldnestmax=2
+
+" Paren highlighting
+hi MatchParen cterm=underline ctermbg=none ctermfg=none
+
+" Rainbow parens
+let g:rainbow_active = 1
+
+" Activate tagbar with F8
+nmap <F8> :TagbarToggle<CR>