(Created page with "<seo title="Cut and Paste Large Blocks | vEdit" description="The vEdit editor offers a powerful block operations which is able to cut and paste huge multi-megabyte blocks."><...")
 
(Cut and Paste Blocks of Any Size)
 
Line 13: Line 13:
 
#Move to the destination for the block. It can be in the same file or a different file.
 
#Move to the destination for the block. It can be in the same file or a different file.
 
#Select <kbd>EDIT</kbd> > <kbd>Insert</kbd> > <kbd>Insert file</kbd>. Enter the same filename, e.g. “temp”. If you wrote a columnar block to disk in step 1., be sure to enable “ [ ] Columnar (block) insert ”. This will insert the file as a columnar block in the same way that <kbd>BLOCK</kbd> > <kbd>Insert register</kbd> does.
 
#Select <kbd>EDIT</kbd> > <kbd>Insert</kbd> > <kbd>Insert file</kbd>. Enter the same filename, e.g. “temp”. If you wrote a columnar block to disk in step 1., be sure to enable “ [ ] Columnar (block) insert ”. This will insert the file as a columnar block in the same way that <kbd>BLOCK</kbd> > <kbd>Insert register</kbd> does.
 +
 +
==Related Resources==
 +
*[[Block_Operations|Block Operations Overview]]
 +
*[[Copy_Move_Cursor| Copy / Move Block to Cursor]]
 +
*[[Windows_Clipboard|Using Windows Clipboard]]

Latest revision as of 19:06, 30 January 2017


Many “cut and paste” operations with the text registers are currently limited to a maximum block size of about 250,000 bytes for the Windows version and 60,000 bytes for other versions. With vEdit writing a block out to disk with FILE > Save block as and then inserting it with EDIT > Insert > Insert file you can “cut and paste” huge multi-megabyte blocks.

You can cut/copy and paste much larger blocks using the clipboard with the Windows version of vEdit. The maximum clipboard size is approximately half of the physical memory, e.g. about 128 Megabytes on a machine with 256 Megabytes of memory.

vEdit uses the clipboard in “text” mode; therefore, do not “cut and paste” binary data, or it will be truncated at the first “Null” character. Also, Windows operations on multi-megabyte “objects” are so slow, that it is often faster to use the vEdit method described here. This limitation occurs because the text registers are currently limited in how much they can hold. The “scratchpad” is one text register. The functions BLOCK > Copy/move to cursor use an internal text register. If you have other blocks or macros stored in the text registers, the maximum “cut and paste” block size may be much smaller than 250,000 bytes. If the block is too large to fit into a text register, you will receive the error message “BLOCK TOO LARGE FOR TEXT REGISTER”

Cut and Paste Blocks of Any Size

  1. Highlight the block and select FILE > Save block as. Both non-columnar (stream and line) and columnar blocks can be written to disk. Choose a filename such as “temp”.
  2. Move to the destination for the block. It can be in the same file or a different file.
  3. Select EDIT > Insert > Insert file. Enter the same filename, e.g. “temp”. If you wrote a columnar block to disk in step 1., be sure to enable “ [ ] Columnar (block) insert ”. This will insert the file as a columnar block in the same way that BLOCK > Insert register does.

Related Resources