Difference between revisions of "Vim keys"

From Jens' Hjørne
Jump to navigation Jump to search
m
Line 8: Line 8:
 
!align="left"|Mode!! !!align="left"|Key!! !!align="left"|Comment
 
!align="left"|Mode!! !!align="left"|Key!! !!align="left"|Comment
 
|-
 
|-
−
|Normal||&nbsp;||<ESC>||&nbsp;||Normal is the default mpde when vim starts
+
|Normal||&nbsp;||<ESC>||&nbsp;||Normal is the default mode when vim starts
 
|-
 
|-
 
|Insert||&nbsp;||i||&nbsp;||This is the normal way of entering Insert mode.
 
|Insert||&nbsp;||i||&nbsp;||This is the normal way of entering Insert mode.

Revision as of 21:57, 11 February 2018

Ressources to check

Modes

Mode   Key   Comment
Normal   <ESC>   Normal is the default mode when vim starts
Insert   i   This is the normal way of entering Insert mode.
Insert   A   This will enter Insert mode and move the cursor to the end of the current line.

Movement (Normal mode)

    Forward   Backward
Unit   Key   Function   Key   Function
Character   l or →   Move one character backward   h or ←   Move one character forward
Word   w   Move 1 word forward   b   Move one word backward
Line   j or ↓   Move to next line   k or ↑   Move to previous line
Line     Move to end of line   0 (zero)   Move to start of line
Sentence     Move forward to end of sentence     Move back to beginning of sentence
Document   G   Move to the end of the document   gg   Move to the start of the document

Editing (Normal mode)

Key   Function
x   Delete the character under the cursor