From: Maximilian Friedersdorff Date: Thu, 12 Sep 2019 12:50:40 +0000 (+0100) Subject: More sensible folding for python X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=03abe3f38059486a19aa373064791fc8055d4792;p=max%2Fsaltfiles.git More sensible folding for python --- diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index bae66ff..9a7f92b 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -119,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 @@ -144,3 +146,6 @@ 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