Every time I copy a file the folds are lost. I understand why this happens, but I can”t figure out out to “export” or “maintain” the folds. Any suggestions? (otherwise I have to rename the view files one by one if I copy a entire folder).
EDIT: I’m folding lines by writting for instance: :1,80 fo
Read the lovely manual,
:help foldmethod.With the manual folds you are using:
Or, you can
set foldmethod=marker, and then:foldwill litter your file with{{{and}}}to indicate where the folds are. Since the default value ismanual, you’ll have to set it tomarker, either in a modeline or in your vimrc.