X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fvim%2Ffiles%2Fvimrc;h=c4f435a25d01e794315c4d14a66f2218b6c44e95;hb=ffd9e3cb25cbd5966b4deaa706ad233c36a88af4;hp=2c92bfe411122acf64f42ec7add35ef648d044f5;hpb=0504720558064c86e7867f471635461534d48479;p=max%2Fsaltfiles.git diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index 2c92bfe..c4f435a 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -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' @@ -22,10 +21,10 @@ Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'airblade/vim-gitgutter' Plugin 'tpope/vim-fugitive' +Plugin 'liskin/vim-fubitive' Plugin 'kien/ctrlp.vim' Plugin 'editorconfig/editorconfig-vim' Plugin 'LaTeX-Box-Team/LaTeX-Box' -Plugin 'ajh17/VimCompletesMe' Plugin 'hynek/vim-python-pep8-indent' Plugin 'vim-scripts/octave.vim--' Plugin 'vim-scripts/MatlabFilesEdition' @@ -35,8 +34,11 @@ Plugin 'tmhedberg/SimpylFold' Plugin 'saltstack/salt-vim' Plugin 'fatih/vim-go' Plugin 'gu-fan/riv.vim' -Plugin 'nvie/vim-rst-tables' Plugin 'lepture/vim-jinja' +Plugin 'aklt/plantuml-syntax' +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 @@ -53,6 +55,7 @@ colorscheme molokai " set shiftwidth=2 " set softtabstop=2 set relativenumber +set number let g:html_indent_inctags = "html,body,head,tbody" let g:indentLine_color_term = 200 @@ -68,7 +71,7 @@ let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 1 let g:syntastic_javascript_checkers = ['eslint'] let g:syntastic_python_python_exec = '/usr/bin/python3' -let g:syntastic_python_checkers = ['flake8'] +let g:syntastic_python_checkers = ['flake8', 'pylint'] let g:syntastic_aggregate_errors = 1 " Syntastic C++11 @@ -101,7 +104,7 @@ let g:clang_user_options='|| exit0' " Color 80th column highlight ColorColumn ctermbg=0 -set colorcolumn=80 +let &colorcolumn="80,".join(range(100,999),",") " Octave Syntax " augroup filetypedetect @@ -116,6 +119,8 @@ let g:netrw_silent = 1 " Set folding set foldmethod=syntax +nnoremap za +vnoremap zf " Better saving behaviour for go let g:go_fmt_experimental = 1 @@ -125,3 +130,31 @@ set list listchars=trail:•,extends:>,precedes:<,nbsp:␣,eol:↲,tab:→\, " Force python3 for rst tables plugin let g:rst_prefer_python_version = 2 + +" Set linelength for python +let g:black_linelength = 80 + +" Python syntax highlighting +let g:python_highlight_builtins = 1 +let g:python_highlight_builtin_objs = 1 +let g:python_highlight_builtin_types = 1 +let g:python_highlight_builtin_funcs = 1 +let g:python_highlight_builtin_kwarg = 1 +let g:python_highlight_exceptions = 1 +let g:python_highlight_string_formatting = 1 +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 :TagbarToggle