I've added the following lines to my .vimrc after reading about folding the other day (taken from vim.wikia.com):
autocmd Syntax html,python,tex setlocal foldmethod=indent autocmd Syntax html,python,tex normal zR
I wanted indented folds enabled, but to be open when I first open a file. However, when I open a python file all the folds are closed, and when I open a .tex file all the folds are open.
Does anyone know what the problem is here?