"Fossies" - the Fresh Open Source Software Archive

Member "ne-3.2.1/doc/html/Replace.html" (2 Oct 2019, 5705 Bytes) of package /linux/misc/ne-3.2.1.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the ne-3.2.1.tar.gz project site itself.

Next: , Previous: , Up: Search Commands   [Contents][Index]

4.5.3 Replace

Syntax: Replace [string]
Abbreviation: R

moves to the first match of the most recent find string or regular expression and prompts you for which action to perform. You can choose among:

Replace is mainly useful for interactive editing. ReplaceOnce, ReplaceAll and RepeatLast are more suited to macros.

If no find string was ever specified, you can enter it on the input line. If the optional argument string is not specified, you can enter it on the input line, the default being the last string used. When the last search was a regular expression search, there are some special features you can use in the replace string (see Regular Expressions) . See FindRegExp.

Note that normally a search starts just one character after the cursor. However, when Replace is invoked, the search starts at the character just under the cursor, so that you can safely Find a pattern and Replace it without having to move back.

Warning: when recording a macro with Record, there is no trace in the macro of your interaction with ne during the replacement process. When the macro is played, you will again have to choose which actions to perform. If you want to apply automatic replacement of strings for a certain number of times, you should look at ReplaceOnce, ReplaceAll, and RepeatLast.

Next: , Previous: , Up: Search Commands   [Contents][Index]