Table of Contents

vi Commands

Source: Vim Tipps by David Rayner and many other pages.

Commands for vi start

begin in line X:

jump form less to vi:

open multiple files:

Insert Mode:

Command Mode

undo:

jump to file begin/end:

delete all from here to the end:

jump to line X:

copy line:

cut and past:

overwrite sign:

jump to the next wort same as current:

delete signs until the end of the current line:

delete characters until the end of the line N:

Search:

For the next command you must type a “:” before the command

Tabs:

write: “w”

next file: “n”

end: “q”

end without write: “q!”

Search and replace:

Commands Visual Mode

text-indent:

cut or copy blocks:

past blocks:

enter text in more than one line as a block:

Uppercase