Better fold settings for zA
dblume

dblume commited on 2023-02-18 22:35:36
Showing 1 changed files, with 1 additions and 3 deletions.

... ...
@@ -6,8 +6,7 @@ set autoindent      " Copy indent from current line when starting a new line
6 6
 set smartindent     " Do smart auto indenting when starting  new line
7 7
 set smarttab        " Honor 'shiftwidth', 'tabstop' or 'softtabstop'
8 8
 set hlsearch        " highlight all matches for previous search
9
-set nofoldenable    " start unfolded
10
-set foldlevel=0
9
+set foldlevel=99
11 10
 set nowrap          " no wrapping text lines on the screen (exceptions below)
12 11
 set sidescroll=5
13 12
 set listchars+=tab:>-,precedes:<,extends:>,nbsp:ยท " for :set list
... ...
@@ -306,7 +305,6 @@ if has("autocmd")
306 305
   autocmd FileType c,cpp,php  set shiftwidth=4
307 306
 
308 307
   autocmd FileType python  set foldmethod=indent  " 'za' to fold
309
-  autocmd FileType python  set foldlevel=99
310 308
 
311 309
   autocmd FileType c,cpp nmap <buffer> <leader>s :call SwitchSourceHeader()<cr>
312 310
   autocmd FileType c,cpp set foldmethod=syntax
313 311