h: Move leftj: Move downk: Move upl: Move rightw: Move to the beginning of the next wordb: Move to the beginning of the previous worde: Move to the end of the current wordgg: Go to the beginning of the fileG: Go to the end of the file0: Move to the beginning of the line$: Move to the end of the line^: Move to the first non-blank character of the line
i: Enter insert mode before the cursorI: Enter insert mode at the beginning of the linea: Enter insert mode after the cursorA: Enter insert mode at the end of the lineo: Open a new line below the current line and enter insert modeO: Open a new line above the current line and enter insert modex: Delete the character under the cursordd: Delete the current lineyy: Yank (copy) the current linep: Paste the yanked or deleted text after the cursoru: UndoCtrl + r: Redo
v: Enter visual mode to select charactersV: Enter visual line mode to select linesCtrl + v: Enter visual block mode to select a block of text
/: Start searching forward?: Start searching backwardn: Move to the next search resultN: Move to the previous search result
:w: Save the current file:q: Quit (close) the current file:wqorZZ: Save and quit:q!: Quit without saving
:help [command]: Open help for a specific command:e [filename]: Open a new file:bnextand:bprev: Switch between open buffers:sp [filename]: Split the window horizontally
Ctrl + h: Select file treeCtrl + l: Select file editorShift + k: View built-in manual docs of a particular keywordCtrl + k: Exit from manual docsShift + h: Left editor tabShift + l: Right editor tabAlt + j: Move current line upAlt + k: Move current line downgg=G: Reindent entire filegc: Comment selected (usegcgcto uncomment block)%: Jump to the other bracket of the current block_: Jump to the first non-blank character on the line$: Jump to the last non-blank character on the line0: Jump to the start of the line\text: Search for text,nfor next occurrence,Nfor the previousf": Find the first ", jump to it with the right arrowci": Delete and start editing inside the next string literalvi": Select inside the next string literalviw: Select the current worddi": Delete inside the next string literalu: UndoCtrl + r: Redoma: Set local mark amA: Set global mark A- `` (backtick): List marks
- ``a`: Go to mark a
Space + e: Toggle File Explorera: Add a new filed: Remove a fileo: Open a file and stay in file explorerj: Move downk: Move upl: Open file and move to editorh: Minimize folderCtrl + l: Jump to editorCtrl + h: Jump to file explorer
v: Character modeV: Line modeCtrl + v: Block modeu: LowercaseU: Uppercased: Deletec: Changey: Yank>: Indent<: Dedent
r: Renamem: Moveo: Order byi: File detailsv: Available shortcutsCtrl + rarrow: Expand tree to the rightShift + h: Toggle show hidden files
Ctrl + b + %: Vertical splitCtrl + b + ": Horizontal splitCtrl + b + x: Close current panelCtrl + b + q: Show panel numsCtrl + b + q + 1: Switch to panel 1