Default Keybindings
Global Actions
| Key Binding | Description | Mode |
|---|---|---|
<leader>aa | Show/open sidebar | Normal |
<leader>an | Start new chat | Normal |
<leader>at | Toggle sidebar visibility | Normal |
<leader>ae | Edit selected blocks | Visual |
<leader>ar | Refresh sidebar | Normal |
<leader>af | Switch sidebar focus | Normal |
<leader>aS | Stop current AI request | Normal |
<leader>a? | Select model | Normal |
<leader>ah | Select chat history | Normal |
<leader>ad | Toggle debug mode | Normal |
<leader>as | Toggle suggestion display | Normal |
<leader>aC | Toggle selection | Normal |
<leader>aR | Toggle repomap | Normal |
<leader>az | Enter Zen mode | Normal |
Sidebar Actions
| Key Binding | Description | Mode |
|---|---|---|
]p | Next prompt | Normal |
[p | Previous prompt | Normal |
A | Apply all changes | Normal |
a | Apply change at cursor | Normal |
r | Retry user request | Normal |
e | Edit user request | Normal |
<Tab> | Switch windows | Normal |
<S-Tab> | Reverse switch windows / Expand tool use | Normal |
x | Toggle code window | Normal |
d | Remove file | Normal |
@ | Add file | Normal |
q | Close sidebar | Normal |
File Management
| Key Binding | Description | Mode |
|---|---|---|
<leader>ac | Add current buffer to selected files | Normal |
<leader>aB | Add all buffer files to selected files | Normal |
Suggestion Actions
| Key Binding | Description | Mode |
|---|---|---|
<M-l> | Accept suggestion | Insert |
<M-]> | Next suggestion | Insert |
<M-[> | Previous suggestion | Insert |
<C-]> | Dismiss suggestion | Insert |
Diff Navigation
| Key Binding | Description | Mode |
|---|---|---|
co | Choose ours | Normal |
ct | Choose theirs | Normal |
ca | Choose all theirs | Normal |
cb | Choose both | Normal |
cc | Choose cursor | Normal |
]x | Move to next conflict | Normal |
[x | Move to previous conflict | Normal |
Jump Actions
| Key Binding | Description | Mode |
|---|---|---|
]] | Jump to next | Normal |
[[ | Jump to previous | Normal |
Submit/Cancel Actions
| Key Binding | Description | Mode |
|---|---|---|
<CR> | Submit (normal mode) | Normal |
<C-s> | Submit (insert mode) | Insert |
<C-c>, <Esc>, q | Cancel (normal mode) | Normal |
<C-c> | Cancel (insert mode) | Insert |
Confirm Window Actions
| Key Binding | Description | Mode |
|---|---|---|
<C-w>f | Focus confirm window | Normal |
c | Confirm code | Normal |
r | Confirm response | Normal |
i | Confirm input | Normal |
Customizing Keybindings
All keybindings can be customized through themappings configuration:
Safe Keymap Setting
Avante.nvim uses safe keymap setting by default. If a keybinding is already in use, Avante will not override it.
auto_set_keymaps = false, you’ll need to manually set all keybindings.
Manual Keybinding Setup
If you disable automatic keymaps, set them manually:Sidebar-Specific Keybindings
Some keybindings are only active when the sidebar is open:Close sidebar from input window:
Toggle code window from input:
Conflict Mapping Customization
Customize diff conflict resolution mappings:Timeout Override
Avoid operator-pending mode issues with diff mappings:Prompt Logger Keybindings
Navigate through prompt logs:Example: Vim-Style Keybindings
Use Vim-style hjkl for navigation:Example: Minimal Keybindings
Minimal setup with only essential keybindings:Integration with Other Plugins
NvimTree Integration
Add files from NvimTree to Avante:Commands vs Keybindings
All keybindings have corresponding commands:| Keybinding | Command | Description |
|---|---|---|
<leader>aa | :AvanteAsk | Open sidebar |
<leader>an | :AvanteChatNew | New chat |
<leader>at | :AvanteToggle | Toggle sidebar |
<leader>ae | :AvanteEdit | Edit selection |
<leader>ar | :AvanteRefresh | Refresh |
<leader>af | :AvanteFocus | Focus sidebar |
<leader>aS | :AvanteStop | Stop request |
<leader>a? | :AvanteSwitchProvider | Switch provider |
<leader>ah | :AvanteHistory | Chat history |