Any way to copy folds to a copied file?
Example: file1 has several folds, now I create a new file cp file2 newfile
. newfile
doesn't have folds that I had created in vim, of course it won't as cp
and vim
are different commands.
Any way to copy folds of file1
to newfile
?
:help mkview
and:help loadview
mkview
andloadview
are for saving and loading folds of one file. Here, my question is to copy fold of one file to other file.mkview
creates a file inviewdir
which identifies the folds (among other things) of a specific view. What you can do is load this file from another view