X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fvim%2Ffiles%2Fvimrc;h=9a7f92bff1861c88600cf6b8cc2794b0652508ef;hb=ec29f230f76084eec585d84a88ae5f8c7bc07d04;hp=2c92bfe411122acf64f42ec7add35ef648d044f5;hpb=0504720558064c86e7867f471635461534d48479;p=max%2Fsaltfiles.git diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index 2c92bfe..9a7f92b 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -37,6 +37,9 @@ Plugin 'fatih/vim-go' Plugin 'gu-fan/riv.vim' Plugin 'nvie/vim-rst-tables' Plugin 'lepture/vim-jinja' +Plugin 'aklt/plantuml-syntax' +Plugin 'psf/black' +Plugin 'vim-python/python-syntax' " All of your Plugins must be added before the following line call vundle#end() " required @@ -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,22 @@ 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