entrez / roku.vim

Vim plugin for Roku development (Scenegraph/Brightscript)
https://www.vim.org/scripts/script.php?script_id=5828
12 stars 3 forks source link

How to set unfold all file as default? #26

Open sykuang opened 2 years ago

sykuang commented 2 years ago

When I open the brs file, it will fold whole file and I need to unfold them. Is it possible to set it as unfold?

entrez commented 2 years ago

@sykuang -- sorry I didn't see this earlier, not sure why I missed it. It's not part of the plugin itself but you can accomplish that by adding something like the following to your .vimrc file:

augroup brs_settings
    au!
    " don't disable folding outright, but open stuff up
    au FileType brs setl fdl=99 fdls=99
augroup END

(or use au FileType brs setl nofoldenable instead if you want to start out with folding turned entirely off)