New answers tagged

0

Catch BufWinEnter and set foldlevel appropriately augroup adjust_fold | au! autocmd BufWinEnter * let &l:foldlevel = line('$') > 100 ? 0 : line('$') > winheight(0) ? 1 : 99 augroup end


Top 50 recent answers are included