Neovim macOS Shortcuts
| Action | macOS Shortcut |
|---|---|
| Normal Mode — Motion | |
| Move left / down / up / right | H/J/K/L |
| Word forward | W |
| Word backward | B |
| End of word | E |
| Start of line | 0 |
| First non-blank of line | ^ |
| End of line | $ |
| Go to first line | GG |
| Go to last line | G |
| Go to line N | NG |
| Jump back | Ctrl+O |
| Jump forward | Ctrl+I |
| Normal Mode — Editing | |
| Undo | U |
| Redo | Ctrl+R |
| Delete line | DD |
| Delete character | X |
| Yank (copy) line | YY |
| Paste after cursor | P |
| Paste before cursor | Shift+P |
| Duplicate line | YYPP |
| Replace character | R{char} |
| Change to end of line | C$ |
| Join lines | Shift+J |
| Indent line right | >> |
| Indent line left | << |
| Insert Mode | |
| Enter Insert mode (before) | I |
| Enter Insert mode (after) | A |
| Insert at start of line | Shift+I |
| Append at end of line | Shift+A |
| New line below | O |
| New line above | Shift+O |
| Return to Normal mode | Esc/Ctrl+[ |
| Delete word backward | Ctrl+W |
| Visual Mode | |
| Enter Visual mode (char) | V |
| Enter Visual mode (line) | Shift+V |
| Enter Visual block mode | Ctrl+V |
| Yank selection | Y |
| Delete selection | D |
| Indent selection right | > |
| Indent selection left | < |
| Toggle case | ~ |
| Search & Commands | |
| Search forward | / |
| Search backward | ? |
| Next match | N |
| Previous match | Shift+N |
| Search word under cursor | * |
| Command mode | : |
| Save file | :W |
| Quit | :Q |
| Save and quit | :WQ/ZZ |
| Quit without saving | :Q! |
| Global replace | :%S/old/new/G |
| LSP & Code (built-in) | |
| Go to definition | GD |
| Go to declaration | GD(uppercase) |
| Show hover documentation | K |
| Show signature help | Ctrl+K |
| List references | GR |
| Next diagnostic | ]D |
| Previous diagnostic | [D |
| Code action | <Leader>CA |