To Fold or Not To Fold in Vim Each time I open in vim my freeCodeCamp Python course notes, which is a Markdown file, it starts folded. I prefer to see the entire file at start up so I added the following to my vimrc : autocmd BufRead *.md normal zR With zR meaning: open all folds in the file. The opposite is zM . While editing I prefer to toggle folding with za . vim