Loading ...
Sorry, an error occurred while loading the content.

Re: cutting and pasting folds

Expand Messages
  • Michael Brailsford
    ... It depends on the filetype of the source file and the dest file. It also depends on the foldmethod. For example, for foldmethod=marker, the markers are
    Message 1 of 2 , Sep 1, 2002
    • 0 Attachment
      > 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
      > intact?

      It depends on the filetype of the source file and the dest file. It
      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.

      -Michael
    Your message has been successfully submitted and would be delivered to recipients shortly.