Skip to content

refactor: vim9/gitbash config feedback — catppuccin, XDG, prompt latency - #2

Open
ethan-sargent wants to merge 2 commits into
work-configfrom
claude/vim9-gitbash-config-LsxEb
Open

refactor: vim9/gitbash config feedback — catppuccin, XDG, prompt latency#2
ethan-sargent wants to merge 2 commits into
work-configfrom
claude/vim9-gitbash-config-LsxEb

Conversation

@ethan-sargent

Copy link
Copy Markdown
Owner

Summary

Post-merge feedback fixes for the Vim 9 + Git Bash config:

  • Catppuccin mocha colorscheme, installed to pack/colors/start/catppuccin; the :colorscheme call lives in after/plugin/colorscheme.vim (runs after start packages join the runtimepath, still before first draw — no packadd needed), with habamax fallback
  • Pack vendor layout: pack/<vendor>/start/<plugin> — tpope plugins under pack/tpope/, colorschemes grouped under pack/colors/; setup.sh migrates away from the old pack/vendor/* layout
  • XDG layout: whole vim/ dir symlinked to $XDG_CONFIG_HOME/vim; any ~/.vimrc is moved aside since its existence makes vim skip XDG config entirely; undo files under $XDG_STATE_HOME/vim/undo; cloned plugins gitignored via vim/pack/
  • Cursor VT sequences (DECSCUSR 5/3/1): vim t_SI/t_SR/t_EI for blinking bar/underline/block in insert/replace/normal; readline vi-ins-mode-string/vi-cmd-mode-string switched to the blinking variants
  • Statusline simplified: wrapper defs removed — org name is a plain global refreshed on enter/dir-change, fugitive used directly via %{FugitiveStatusline()}, native showmode for mode display
  • Custom bash prompt removed: per-prompt node/git subprocesses added significant latency; Git Bash's stock prompt stands, dxenv shows the org on demand
  • Bell disabled: belloff=all in vim, bind 'set bell-style none' in bashrc alongside the existing .inputrc setting

Test plan

  • Run bash/setup.sh; confirm $XDG_CONFIG_HOME/vim symlink, plugins under pack/tpope/ and pack/colors/, old pack/vendor/ removed
  • Open vim with no ~/.vimrc present; confirm catppuccin mocha applies with no flash of default colors and no startup errors
  • Verify cursor changes shape in vim (insert/replace/normal) and in bash (insert/command)
  • Confirm bash prompt latency is back to stock

🤖 Generated with Claude Code

https://claude.ai/code/session_01TLBtrSbsBvGGmmtLFcxyp7


Generated by Claude Code

claude added 2 commits July 22, 2026 03:46
- catppuccin_mocha colorscheme (catppuccin/vim added to plugin
  installs; packadd! in vimrc since start packages join rtp after
  the vimrc is sourced), habamax as fallback
- add DECSCUSR cursor sequences: blinking bar/underline/block for
  insert/replace/normal (t_SI/t_SR/t_EI)
- simplify statusline: drop mode-map and existence-check wrapper
  functions (%{} items are lazily evaluated, and vim9 defs fail to
  compile against missing functions anyway); org name is now a plain
  global refreshed on enter/dir-change, fugitive used directly via
  FugitiveStatusline(); rely on native showmode
- set belloff=all
- XDG layout: link the whole vim/ dir to $XDG_CONFIG_HOME/vim
  instead of ~/.vimrc (which makes vim skip XDG entirely); plugins
  now live in vim/pack/vendor/start (gitignored); undo files under
  $XDG_STATE_HOME/vim/undo

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TLBtrSbsBvGGmmtLFcxyp7
- move :colorscheme to after/plugin/colorscheme.vim — runs once
  pack/*/start packages are on the runtimepath, still before first
  draw, so no packadd needed
- pack layout is now pack/<vendor>/start/<plugin>: tpope plugins
  under pack/tpope/, colorschemes grouped under pack/colors/;
  setup.sh migrates away from the old pack/vendor/* layout
- drop the custom bash prompt: node/git subprocesses per prompt add
  noticeable latency on Windows; Git Bash's stock prompt already
  shows path + branch, and dxenv covers the org on demand
- readline cursor shapes now use the blinking variants (bar 5 for
  insert, block 1 for command) to match Windows Terminal defaults
- bell disabled in bashrc too via bind, in case .inputrc isn't linked

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TLBtrSbsBvGGmmtLFcxyp7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants