Enable fodexpr initially when the line number is less than 1000

This commit is contained in:
leafOfTree
2020-11-20 11:46:14 +08:00
parent 5f175b37ec
commit a5e3c10795
2 changed files with 7 additions and 3 deletions

View File

@@ -13,7 +13,9 @@ if !s:use_foldexpr | finish | endif
" Settings {{{
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
setlocal foldmethod=expr
if line('$') < 1000
setlocal foldmethod=expr
endif
setlocal foldexpr=GetVueFold(v:lnum)
"}}}