What is Zen Mode?
Zen Mode transforms Avante.nvim into a terminal-based coding agent CLI that looks and feels like tools like Claude Code or Gemini CLI, but runs entirely within Neovim. This gives you the best of both worlds:- CLI-like experience for quick AI interactions
- Full Neovim power underneath for editing and navigation
- Vim muscle memory works perfectly
- Rich plugin ecosystem available
- No context switching between tools
Why Zen Mode?
Modern coding agent CLIs have popularized the “Vibe Coding” workflow, but they have fundamental limitations:Terminal UX Problem
CLI tools struggle with editing multi-line prompts and code. They can’t match 50+ years of terminal editor innovation.
Context Switching
Agent CLIs often need to jump to external editors to view or modify code, breaking your flow.
Limited Extensibility
No access to Neovim’s thousands of mature plugins for navigation, editing, and productivity.
Vim Abstractions
Can’t leverage Vim’s elegant action + text object model for efficient editing.
Quick Setup
Create an alias to launch Zen Mode:~/.bashrc, ~/.zshrc, etc.), then reload your shell:
Using Zen Mode
Once in Zen Mode, you have a focused AI coding interface:Starting a Conversation
Type your request
Use the input area to describe what you want:Press
<CR> (Enter) in normal mode or <C-s> in insert mode to submit.Review and interact
The AI responds with code suggestions. You can:
- Apply changes with
a(cursor) orA(all) - Edit your request with
e - Retry with
r - Navigate with standard Vim movements
Key Features in Zen Mode
Full Vim Editing Power
Full Vim Editing Power
Unlike traditional agent CLIs, you can:
- Use Vim motions (
hjkl,w,b,f,t, etc.) - Leverage text objects (
ciw,dap,vi{, etc.) - Run Vim commands (
:s/old/new/g,:%s/foo/bar/g) - Access all your Vim plugins (telescope, treesitter, etc.)
Agent Client Protocol (ACP) Support
Agent Client Protocol (ACP) Support
Zen Mode supports all ACP features:
- File operations
- Tool execution
- Multi-step workflows
- Context gathering
Project Context
Project Context
Zen Mode vs Traditional Usage
- Zen Mode
- Regular Mode
Optimized for terminal workflows
- Launch from command line:
avante - Sidebar-first interface
- Quick AI interactions without opening files
- CLI-like UX with Vim power underneath
- Starting new projects
- Quick prototyping
- Exploratory coding
- Terminal-centric workflows
Advanced Configuration
Customize Zen Mode behavior:Custom Zen Mode Alias
You can create variations for different workflows:Keyboard Shortcuts in Zen Mode
All standard Avante keybindings work, plus you have full Vim at your fingertips:| Action | Keybinding | Description |
|---|---|---|
| Submit request | <CR> (normal) or <C-s> (insert) | Send your prompt to AI |
| Switch windows | <Tab> | Toggle between chat and code |
| Apply cursor | a | Apply suggestion at cursor |
| Apply all | A | Apply all suggestions |
| Edit request | e | Modify your last request |
| Retry | r | Regenerate response |
| Add file | @ | Add file to context |
| Remove file | d | Remove file from context |
| Close | q or <Esc> | Exit Zen Mode |
Tips for Effective Zen Mode Usage
Example Workflow
Here’s a complete Zen Mode workflow for building a new feature:Comparison with Other Agent CLIs
| Feature | Zen Mode | Claude Code | Gemini CLI | Cursor CLI |
|---|---|---|---|---|
| Vim Editing | ✅ Full Vim | ❌ Limited | ❌ Limited | ❌ Limited |
| Plugin Support | ✅ All Neovim plugins | ❌ None | ❌ None | ❌ None |
| Multi-line Editing | ✅ Vim text objects | ⚠️ Basic | ⚠️ Basic | ⚠️ Basic |
| Context Switching | ✅ None | ❌ External editor | ❌ External editor | ❌ External editor |
| Terminal Integration | ✅ Native | ⚠️ Limited | ⚠️ Limited | ⚠️ Limited |
| Customization | ✅ Full Lua/Vim script | ❌ Limited | ❌ Limited | ❌ Limited |
Next Steps
Quick Start
Get started with Avante in 5 minutes
Project Instructions
Customize AI behavior for your project
ACP Support
Use external AI agents in Zen Mode
Keybindings
Complete keybinding reference