In Vim, how do I have the default behavior when opening a Python file be open all folds

64 Views Asked by At

I have this in my .vimrc

autocmd FileType python setlocal foldmethod=indent

so that I can use zr zR zm zM to see different levels of my Python files. The only thing is when I open a Python script, it's folded by default and I have to use zR to open all the folds. I don't want to do the extra zR every time I open a file. How do I set the default behavior upon opening a file be to open all the folds? Is there something along the lines of "apply zR upon opening" or something else that does the same thing?

0

There are 0 best solutions below