HP 3000 Manuals

Text Location Commands [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Text Location Commands 

          Finding Characters 

----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|     Key      |                Command                 |        Definition [REV BEG]        |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      G       | Find All Occurrences                   | Locates all occurrences of a given |
|              |                                        | character [REV END]                |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      F       | Find Character                         | Locates next occurrence of a given |
|              |                                        | character                          |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|    ESC F     | Find Previous Character                | Locates previous occurrence of a   |
|              |                                        | given character                    |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      _       | Find Blank Space                       | Locates next [count] occurrence of |
|              |                                        | a blank space                      |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|    ESC _     | Find Previous Blank Space              | Locates previous [count]           |
|              |                                        | occurrence of a blank space        |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      .       | Find .                                 | Locates next [count] occurrence of |
|              |                                        | a period                           |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|    ESC .     | Find Previous .                        | Locates previous [count]           |
|              |                                        | occurrence of a period             |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      ,       | Find Matching Delimiter                | Locates next delimiter which       |
|              |                                        | matches the current delimiter      |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------

          Defining Search And Replace Patterns 

----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|     Key      |                Command                 |             Definition             |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      f       | Define Search Pattern                  | Prompts for search pattern         |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|              | Insert Search Pattern                  | Inserts search pattern in text     |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|              | Define Search Pattern From Text        | Uses text on current line to       |
|              |                                        | define search pattern              |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      =       | Define Replace Pattern                 | Prompts for replace pattern        |
|              |                                        | definition                         |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|              | Insert Replace Pattern                 | Inserts currently defined replace  |
|              |                                        | pattern in text                    |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|              | Define Replace Pattern From Text       | Uses text on current line for      |
|              |                                        | replace pattern definition         |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------

          Searching For And Replacing Text 

----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|     Key      |                Command                 |             Definition             |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      /       | Search Forward                         | Searches forward for defined       |
|              |                                        | search pattern                     |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      \       | Search Backward                        | Searches backward for defined      |
|              |                                        | search pattern                     |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      }       | Search And Replace Forward             | Searches forward for search        |
|              |                                        | pattern, then prompts for          |
|              |                                        | replacement action                 |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      {       | Search And Replace Backward            | Searches backward for search       |
|              |                                        | pattern, then prompts for          |
|              |                                        | replacement action                 |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|    ESC }     | Global Search And Replace Forward      | Searches forward for search        |
|              |                                        | pattern and replaces all           |
|              |                                        | occurrences without prompting      |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|    ESC {     | Global Search And Replace Backward     | Searches backward for search       |
|              |                                        | pattern and replaces all           |
|              |                                        | occurrences without prompting      |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------

          Setting And Accessing Place Markers 

----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|     Key      |                Command                 |             Definition             |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      `       | Set Mark                               | Sets place marker <count 1-11>     |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      #       | Set Distance To Mark                   | Calculates distance to [count]     |
|              |                                        | marker and uses this as the count  |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|    ESC #     | Set Distance To Previous Location      | Calculates distance to previous    |
|              |                                        | marker position and uses this for  |
|              |                                        | the count                          |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|    ESC g     | Go To Column/Mark                      | Moves cursor to [count] marker or  |
|              |                                        | prompts for column number          |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      g       | Go To Line/Mark                        | Moves cursor to [count] marker or  |
|              |                                        | prompts for line number            |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|      @       | Swap Cursor With Mark                  | Exchanges cursor with [count]      |
|              |                                        | marker                             |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------
|              |                                        |                                    |
|    ESC @     | Swap With Previous Location            | Exchanges cursor with previous     |
|              |                                        | location marker 11                 |
|              |                                        |                                    |
----------------------------------------------------------------------------------------------



MPE/iX 5.0 Documentation