Vi/Vim
vim --version shows the vim version and its enabled complements
vim -g starts vim in graphical IDE
Edition
u Undo last action
dd Remove current line
d5d Remove five lines
:e! Reread the file and override done changes
Navigating the file
:<n_line> Go to that num of line
/<word> Search that word. n key will look for the next one.
gg Move to the beginning of the line
IDE
set number Show line numbers
Tabs
:tabe file To open a file in a tab
gT and gt To change between tabs
:qa To close all tabs at once
System
:!command Run system command from vim
:!! Run the selected text as system command