. - repeat last commandv - go to visual mode:w - save:q - quitu - undoctrl + r - redo:help - helph - one character leftl - one character rightj - one character downk - one character upw - moves forward to the start of next worde - moves forward to the end of the next (current) wordb - moves back to beginning of the wordnw - moves through n to the begining of the nth line% - jump to the next matching parenthesis:10 - go to line 10gg - go to begining of a fileG - go to the end of a filei - go to the edit mode under cursora - go to the edit mode starting with next character to cursortA - go to the end of line and start edit modeo - insert new line after the currentO - insert new line before the currentr - replace one character and not go to edit modes - delete charcter under cursor and enter edit modecc - delete current line and go to edit modecw- delete next word and go to edit mode:m line_number or +\- number - moves current line
:m +1 - move line one line down:m 12 - move current line to 12 line30itext + esc - inserts word text 30 timesd$ - deletes from current position to the end of lined^ - deletes from current backward to first non-white-space characterd0 - deletes from current backward to begining of linedw - deletes current to end of current word (including trailing space)dd - cuts whole linedb deletes current to begining of current wordx - removes character under the cursorX - removes one character left to the cursorp - past from bufferyy - yank next line to buffer10yy - yank next 10 lines to bufferfa - finds the next occurences of a* - finds the next occurence of the word# - finds the previous occurence of the word/ - search a word
n - go to next occurenceN - go to previous occurencectrl + vshift iesc twice/<pattern/>Everywhere:
:%s/old/new/g
In the selected text
select text with ctrl+V
then type :
'<,'>s/old/new/g