next up previous
Next: 11.2 Replace Up: 11. Search and Replace Previous: 11. Search and Replace

Subsections

11.1 Find

Ved makes it easy to find and replace words or entire sections of your text. By default, Ved considers TAB characters to be identical to SPACEs and thinks that lowercase characters are the same as their uppercase equivalents. However, this can be changed with the setting of the case option (Section 18.2.1).

11.1.1 Find [Escape F]

The [Esc][F] command is used to find a pattern or string in the current buffer. First you will be asked to enter a pattern in a popup window. The buffer will be scanned for a match starting at the current cursor position. If a match is found the cursor will be moved to the start of the match and the match will be highlighted. Pressing a key will terminate the highlight (no keypresses will be lost). If a match is not found in a forward position from the cursor, Ved will search backwards in the buffer for the target. If it found, the message ``Found backwards, move to?'' will be displayed. If you press [Y] the cursor will be moved; any other key will leave the cursor at the current position. If no match is found a ``can't find target'' message will be displayed.

11.1.2 Find Backwards [Escape S]

Pressing [Esc][S] is the same as the find command described above; however, the search is done backwards towards the start of the file from the current cursor position. A forward search is not done if the target is not found.

11.1.3 Find Next [Escape N]

The [Esc][N] command Finds a pattern previously entered for find or find-backwards. The search proceeds in the same manner as described in find, above.

11.1.4 Find Prior [Escape L]

To find a pattern previously entered for find or find-backwards press [Esc][L]. The search starts at the current cursor position and ends at the start of the file.


next up previous
Next: 11.2 Replace Up: 11. Search and Replace Previous: 11. Search and Replace
2004-05-02