New answers tagged


TL;DR: You should include the command filetype plugin on in your vimrc. You most probably want filetype plugin indent on to enable all filetype-related types of plugins. Vim has a handful of filetype-related features, and they can be enabled and disabled individually using the :filetype command. (Technically, syntax highlighting is also dependent on ...


I turn folds off set nofoldenable And toggle them with zi. My auto-origami plugin (on github—link later) toggles the foldcolumn for me.


An alternative ~/.vimrc addition which only affects org-mode files: autocmd FileType org setlocal foldlevel=99


There is a :folddoclosed command which iterates over all closed folds (just like :g command for the whole buffer) and executes one or more commands on them. So I would close all folds, convert each fold into one long line by replacing the end-of-line with a unique marker, shuffle the lines around, and replace the markers with line-breaks. Something along zM ...

Top 50 recent answers are included