(Block Function Key Behavior)
(Block Function Key Behavior)
 
Line 21: Line 21:
 
*'''Functions:''' Move to cursor, '''Key:''' <kbd>Alt-F9</kbd>, '''No Maker Set:''' Set 1st Marker, '''1st Marker Set:''' Set 2nd Marker, '''2nd Marker Set:''' Move to cursor
 
*'''Functions:''' Move to cursor, '''Key:''' <kbd>Alt-F9</kbd>, '''No Maker Set:''' Set 1st Marker, '''1st Marker Set:''' Set 2nd Marker, '''2nd Marker Set:''' Move to cursor
  
<div class="callout note"><kbd>BLOCK</kbd> > <kbd>Persistent blocks</kbd> must be enabled (checked) for these functions to work.
+
<div class="callout note">
 +
 
 +
<kbd>BLOCK</kbd> > <kbd>Persistent blocks</kbd> must be enabled (checked) for these functions to work.
  
 
The “Normal” vEdit keyboard layout assigns <kbd>F9</kbd> to <kbd>BLOCK</kbd> > <kbd>Set stream marker</kbd>. Alternatively you could assign <kbd>F9</kbd> to <kbd>BLOCK</kbd> > <kbd>Copy to cursor</kbd>. <kbd>F9</kbd> would then perform a convenient combination of setting block markers and copying a block of text. (Earlier versions of vEdit did this.)
 
The “Normal” vEdit keyboard layout assigns <kbd>F9</kbd> to <kbd>BLOCK</kbd> > <kbd>Set stream marker</kbd>. Alternatively you could assign <kbd>F9</kbd> to <kbd>BLOCK</kbd> > <kbd>Copy to cursor</kbd>. <kbd>F9</kbd> would then perform a convenient combination of setting block markers and copying a block of text. (Earlier versions of vEdit did this.)
  
Copying a block of text to two or more places in your file or into another file is best done with the use of a scratchpad (text registers).</div>
+
Copying a block of text to two or more places in your file or into another file is best done with the use of a scratchpad (text registers).
 +
 
 +
</div>
  
 
==Related Resources==
 
==Related Resources==

Latest revision as of 18:50, 30 January 2017


BLOCK > Copy to cursor and BLOCK > Move to cursor save steps when performing the common operations of copying or moving a block of text within your file.

Instead of having to first copy or cut the block to the scratchpad/clipboard, you can simply copy/move a highlighted block to the current cursor position. This is possible because vEdit’s blocks are persistent if BLOCK > Persistent blocks is enabled (checked) — after highlighting a block, you can move the cursor and the block remains highlighted.

BLOCK > Copy / Move to cursor can also be used to set block markers. Their operation depends upon how many block markers are set; see the table below. In this way, only a single key is needed to copy a block of text.

Directly Copy / Move a Block Using a Single Key

  1. Move the cursor to the first character of the block. Press Ctrl-F9 ( the hot-key for BLOCK > Copy to cursor ).
  2. Move the cursor past the last character of the block. Press Ctrl-F9 again. The block is now highlighted.
  3. Move the cursor to the destination for the block. Press Ctrl-F9 for the third time. The text will be copied in front of the cursor.

Alternatively, use Alt-F9 to move the block.

Block Function Key Behavior

  • Functions: Copy to cursor, Key: Ctrl-F9, No Maker Set: Set 1st Marker, 1st Marker Set: Set 2nd Marker, 2nd Marker Set: Copy to cursor
  • Functions: Move to cursor, Key: Alt-F9, No Maker Set: Set 1st Marker, 1st Marker Set: Set 2nd Marker, 2nd Marker Set: Move to cursor

BLOCK > Persistent blocks must be enabled (checked) for these functions to work.

The “Normal” vEdit keyboard layout assigns F9 to BLOCK > Set stream marker. Alternatively you could assign F9 to BLOCK > Copy to cursor. F9 would then perform a convenient combination of setting block markers and copying a block of text. (Earlier versions of vEdit did this.)

Copying a block of text to two or more places in your file or into another file is best done with the use of a scratchpad (text registers).

Related Resources