cutting and pasting folds
- when you do, the fold vanishes and only its content is pasted.
is there a way to cut and paste a fold and keep the fold itself
> when you do, the fold vanishes and only its content is pasted.It depends on the filetype of the source file and the dest file. It
> is there a way to cut and paste a fold and keep the fold itself
also depends on the foldmethod. For example, for foldmethod=marker, the
markers are also copied over with the fold, so it will stay intact, but
for fdm=syntax, if, for example, you paste from a .cpp file into a .html file, the
folds will be different. fdm=marker is the fold method that is the most
readily copiable since it contains the fold info inline in the text. It
is also the most portable between developers, since developers on a
project can share folds even across editors, ie, emacs can fold based on
fold markers, etc.