Source: Vim Tipps by David Rayner and many other pages.
begin in line X:
vi +25 test.sh
jump form less
to vi:
open multiple files:
vi test1.sh test2.sh test3.sh
.vi test*.sh
.Insert Mode:
undo:
jump to file begin/end:
delete all from here to the end:
jump to line X:
<ESC> 23 <RETURN>
you will jump 23 lines forward <ESC> 23G
you will jump to line 23copy 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:
<ESC> 23D
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:
text-indent:
cut or copy blocks:
past blocks:
enter text in more than one line as a block:
Uppercase
U