Vim Key Maps: A Beginner’s Guide
Vim is a powerful text editor that has been around for decades. While it may seem overwhelming at first, once you learn a few basic key maps, you’ll find that Vim is a highly efficient and customizable tool for editing text.
Here is a list of some of the most commonly used key maps in Vim:
Navigation
h: Move cursor one character to the leftj: Move cursor one character downk: Move cursor one character upl: Move cursor one character to the rightw: Move cursor to the start of the next wordb: Move cursor to the start of the previous word0(zero): Move cursor to the start of the line$: Move cursor to the end of the lineG: Move cursor to the last line of the filegg: Move cursor to the first line of the file:<line number>: Move cursor to a specific line number
Insert Mode
i: Enter insert mode at cursor positionI: Enter insert mode at the start of the linea: Enter insert mode after cursor positionA: Enter insert mode at the end of the lineo: Open a new line below the cursor and enter insert modeO: Open a new line above the cursor and enter insert modeEsc: Exit insert mode
Deleting Text
x: Delete the character under the cursordd: Delete the current linedw: Delete from the cursor to the end of the current worddb: Delete from the cursor to the start of the previous wordd$: Delete from the cursor to the end of the lined0: Delete from the cursor to the start of the line
Visual Mode
v: Enter visual mode
Comments powered by Disqus.