EdimCoder » Wiki

EdimCoder Wiki

Featured Article: Commands

Basic

a (line/range)

Insert a line after the given line number or range.

i (line/range)

Insert a line before the given line number or range.

A (line)

Insert characters at end of a line - Append.

I (line)

Insert characters at the beginning of a line - Prepend.

x (line/range)

Delete the given line number or range.

m (line/range)

Move the given line number or range up by one.

M (line/range)

Move the given line number or range down by one.

j (line/range)

Set the current line to the given line number. Use j$ to set the last line of the file as the current line. The line/range will also be printed.

Find and Replace

These commands are very likely to change in the future.

f (string)

Finds the first occurrence of the string in the file and prints the line it's on.

F (line) (string)

Finds the first occurrence of the string in the given line number and prints the line showing where the occurrence is located.

r (line)

Replace a line with a new line.

R (line) (string)

Replace the first occurrence of the given string in the given line number with characters ...