Skip to main content

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.
Zen Mode solves this: It’s a Vibe Coding Agent CLI interface, but it’s actually Neovim underneath. You get a modern agent CLI UX with all of Neovim’s power.

Quick Setup

Create an alias to launch Zen Mode:
Add this to your shell configuration file (~/.bashrc, ~/.zshrc, etc.), then reload your shell:
Now you can start Zen Mode just like any coding agent CLI:

Using Zen Mode

Once in Zen Mode, you have a focused AI coding interface:

Starting a Conversation

1

Launch Zen Mode

This opens Neovim with the Avante sidebar in focus, ready for your first prompt.
2

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.
3

Review and interact

The AI responds with code suggestions. You can:
  • Apply changes with a (cursor) or A (all)
  • Edit your request with e
  • Retry with r
  • Navigate with standard Vim movements
4

Edit code with Vim

Switch to the code buffer (<Tab>) and use all your Vim skills:

Key Features in Zen Mode

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.)
Zen Mode supports all ACP features:
  • File operations
  • Tool execution
  • Multi-step workflows
  • Context gathering
See ACP Support for configuration.
Use avante.md files to give the agent project-specific context:
See Project Instructions.

Zen Mode vs Traditional Usage

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
Best for:
  • 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:

Tips for Effective Zen Mode Usage

Use project instructions: Create an avante.md file in your project root to give the agent context about your codebase, conventions, and requirements.
Leverage Vim plugins: Your favorite Neovim plugins (telescope, harpoon, vim-fugitive) work perfectly in Zen Mode.
Split windows: Use :vsplit and :split to view multiple files while chatting with the AI.
Terminal integration: Open a terminal inside Neovim (:terminal) to run commands without leaving Zen Mode.

Example Workflow

Here’s a complete Zen Mode workflow for building a new feature:
1

Launch Zen Mode

2

Describe the feature

3

Review generated code

The AI generates the authentication module. Use Vim navigation:
4

Apply and test

5

Iterate on feedback

The agent updates the code with rate limiting logic.

Comparison with Other Agent CLIs

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