Replacing Cursor With Neovim and Claude Code
作者展示了如何通过Ghostty将Claude Code、NeoVim和终端整合到一个三窗格布局中。左边运行Claude Code,右边用于代码编辑,底部作为shell。通过自定义快捷键实现窗格间的切换。这种方法简化了配置流程,避免了插件兼容性问题。 2025-7-13 12:30:0 Author: danielmiessler.com(查看原文) 阅读量:0 收藏

How to use Claude Code without giving up NeoVim

July 13, 2025

Neovim and Claude Code Integration

My three-paned Ghostty / Neovim / Claude Code Setup (click for full size)

It kind of sucks right now to be a (neo)Vim user if you're super excited about Claude Code.

All that power...right in your editor! It's sooooo great.

But all the Examples that you've seen of people doing it or that you have tried yourself have been with Cursor, Windsurf, or VSCode. And the plugins you've tried with Neovim don't work, or they're glitchy, or they're gross to configure and use.

I solved this for myself with a much simpler configuration.

Ghostty to the rescue

I'm sure you're familiar with Ghostty, which is kind of universally accepted as the best terminal.

What I've done is configured my entire IDE, Claude Code, and my terminal interface into a single Ghostty window with three panes.

  1. Claude Code on the left
  2. Neovim (Code) on the right
  3. A shell down below the code window

And here's the Ghostty configuration I use to open and move between panes.

The Ghostty Keybindings

bash

# Create new split to the right (for Neovim)
keybind = cmd+d=new_split:right

# Create new split below (for your shell)
keybind = cmd+shift+t=new_split:down

# Navigate between panes (vim-style)
keybind = ctrl+h=goto_split:left
keybind = ctrl+j=goto_split:bottom
keybind = ctrl+k=goto_split:top
keybind = ctrl+l=goto_split:right

The result

So now all you have to do is:

  • Open up Ghostty
  • Open up a pane to the right
  • Open up a pane below that
  • Type claude on the left
  • Open and edit your code/files in NeoVim on the right
  • Leave the bottom one your shell

...and you are good to go!

Hope this helps someone.

Happy hacking!


文章来源: https://danielmiessler.com/blog/replacing-cursor-with-neovim-claude-code?utm_source=rss&utm_medium=feed&utm_campaign=website
如有侵权请联系:admin#unsafe.sh