From 03abe3f38059486a19aa373064791fc8055d4792 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 12 Sep 2019 13:50:40 +0100 Subject: [PATCH] More sensible folding for python --- states/vim/files/vimrc | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.46.2