Strip vim entirely; EDITOR is nano

dissimulo does not use vim. Removes the editor, its config tree, its plugin
manager, and everything that would reinstall it on a re-bootstrap.

Deleted (82 files):
  vim/ (64)          the whole config tree, 1.7M
  doc/vim/ (8)       its documentation
  .vimrc, vimrc, .vim
  bin/yadr/vundle.rb, yadr-vim-{add,delete,list}-plugin
  bin/fix_macvim_external_display.sh   MacVim on macOS, dead here anyway
  vimify/            vi keybindings for readline/libedit, dropped on request

Edited:
  Rakefile        drop the vundle require, the vim install block, the
                  vundle_migration and install_vundle tasks, their two helper
                  methods, and the macvim homebrew line. Without this a
                  re-bootstrap would pull all of it straight back.
  install.sh      .vim/.vimrc out of the symlink list
  zsh/vi-mode.zsh EDITOR/VISUAL now nano. The zsh vi keybindings stay; they
                  are not vim.
  zsh/aliases.zsh yav/ydv/ylv, the MacVim detection block and ve removed;
                  ae/ze/gi now open nano
  git/gitconfig   mvimdiff mergetool removed, editor set to nano
  .tmux.conf      vim-tmux-navigator replaced with direct select-pane binds.
                  It ran ps piped to grep on EVERY C-h/j/k/l press to ask
                  whether vim held the pane: two forks per pane switch for a
                  question that can now only answer no. mode-keys and
                  status-keys vi stay, being tmux own key style, unrelated to
                  the editor.
  .gitignore/.dockerignore/Dockerfile   dead paths and the vim package

Also renames the installer banner to DRUNKENDOTFILES, piped through lolcat
when present with a plain-text fallback.

Left alone: the .yadr paths (renaming the checkout is a separate job), generic
swap-file ignores, the fasd viminfo support (third-party), and prose mentions.
This commit is contained in:
2026-08-25 12:22:43 -07:00
parent 7ec4c75d86
commit 4fa6f90a9e
91 changed files with 37 additions and 1701 deletions
+9 -14
View File
@@ -33,20 +33,15 @@ bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
# Direct pane switching. This used to be vim-tmux-navigator, which ran
# `ps | grep` on EVERY C-h/j/k/l press just to ask whether vim was in the
# pane. vim is gone, so the probe can only ever answer no -- two forks per
# pane switch for nothing.
bind-key -n 'C-h' select-pane -L
bind-key -n 'C-j' select-pane -D
bind-key -n 'C-k' select-pane -U
bind-key -n 'C-l' select-pane -R
bind-key -n 'C-\' select-pane -l
bind-key -T copy-mode-vi 'C-h' select-pane -L
bind-key -T copy-mode-vi 'C-j' select-pane -D