This single line sets foldmethod to marker. I think this method is better than autocmd method, because filetype checking is not needed, and it only affects 1 file(vimrc), not affecting other vim files.
Note: this line should be placed within 5 lines of the top or bottom of vimrc file.
Reference: