How to Integrate Claude Code with Neovim Using Ghostty Terminal Panes
文章介绍了一种在Neovim中集成AI助手Claude Code的方法:通过Ghostty终端的三个分屏(左侧Claude Code、右侧Neovim、底部终端),并配置快捷键实现快速切换。这种方式让用户无需离开Neovim即可享受AI辅助功能。 2025-7-8 10:0:0 Author: danielmiessler.com(查看原文) 阅读量:5 收藏

Get AI assistance without leaving your favorite text editor

July 8, 2025

Claude Code and Neovim integration through Ghostty terminal

If you're a Neovim user feeling left out watching everyone use Claude Code with VS Code, here's my dead simple solution: three terminal panes.

The Setup

One Ghostty window, three panes:

  • Left: Claude Code
  • Right: Neovim
  • Bottom: Terminal

The Configuration

Add these to your Ghostty config:

toml

keybind = ctrl+h=goto_split:left
keybind = ctrl+j=goto_split:bottom
keybind = ctrl+k=goto_split:top
keybind = ctrl+l=goto_split:right

Now use Control + vim keys to jump between panes instantly. No mouse, no window switching.

Why It Works

This setup eliminates the need for VS Code or Cursor. You keep your Neovim config, your muscle memory, and gain AI assistance exactly when you need it.

Getting Started

  1. Install Ghostty (or any terminal with panes)
  2. Add the keybindings
  3. Open three panes
  4. Start Claude Code, Neovim, and a terminal

That's it. We get all the CC goodness without losing vim!


文章来源: https://danielmiessler.com/blog/claude-code-neovim-ghostty-integration
如有侵权请联系:admin#unsafe.sh