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
-4
View File
@@ -1,4 +0,0 @@
#!/bin/sh
rm ~/Library/Preferences/org.vim.MacVim.LSSharedFileList.plist && \
rm ~/Library/Preferences/org.vim.MacVim.plist && \
echo "Files deleted sucessfully. You may have to restart OSX."
-50
View File
@@ -1,50 +0,0 @@
require 'fileutils'
module Vundle
@vundles_path = File.expand_path File.join(ENV['HOME'], '.vim', '.vundles.local')
def self.add_plugin_to_vundle(plugin_repo)
return if contains_vundle? plugin_repo
vundles = vundles_from_file
last_bundle_dir = vundles.rindex{ |line| line =~ /^Bundle / }
last_bundle_dir = last_bundle_dir ? last_bundle_dir+1 : 0
vundles.insert last_bundle_dir, "Bundle \"#{plugin_repo}\""
write_vundles_to_file vundles
end
def self.remove_plugin_from_vundle(plugin_repo)
vundles = vundles_from_file
deleted_value = vundles.reject!{ |line| line =~ /Bundle "#{plugin_repo}"/ }
write_vundles_to_file vundles
!deleted_value.nil?
end
def self.vundle_list
vundles_from_file.select{ |line| line =~ /^Bundle .*/ }.map{ |line| line.gsub(/Bundle "(.*)"/, '\1')}
end
def self.update_vundle
system "vim --noplugin -u #{ENV['HOME']}/.vim/vundles.vim -N \"+set hidden\" \"+syntax on\" \"+let g:session_autosave = 'no'\" +BundleClean +BundleInstall! +qall"
end
private
def self.contains_vundle?(vundle_name)
FileUtils.touch(@vundles_path) unless File.exist? @vundles_path
File.read(@vundles_path).include?(vundle_name)
end
def self.vundles_from_file
FileUtils.touch(@vundles_path) unless File.exist? @vundles_path
File.read(@vundles_path).split("\n")
end
def self.write_vundles_to_file(vundles)
FileUtils.cp(@vundles_path, "#{@vundles_path}.bak")
vundle_file = File.open(@vundles_path, "w")
vundle_file.write(vundles.join("\n"))
vundle_file.close
end
end
-28
View File
@@ -1,28 +0,0 @@
#!/usr/bin/env ruby
#
require File.join(File.dirname(__FILE__), 'default_libs')
require File.join(File.dirname(__FILE__), 'vundle')
GitStyleBinary.command do
version "yadr-add-vim-plugin 1.0"
short_desc "Add a vim plugin from a repo"
opt :url, "Repository URL (see usage)", :required => true, :type => String
banner <<-'EOS'
Usage: yadr-add-vim-plugin --url [URL]
Specify a plugin repository URL in one of the following forms:
- Custom repository URL (full URL): git://git.wincent.com/command-t.git
- Github repository (username/repo_name): robgleesson/hammer.vim.git
- Vim script repository (plugin_name): FuzzyFinder
EOS
run do |command|
repo=command.opts[:url]
repo=command.opts[:url]
puts "Adding \"#{repo}\" to the plugin list"
bundle_path=repo.gsub(/http.?:\/\/github\.com\//, "")
Vundle::add_plugin_to_vundle repo
Vundle::update_vundle
end
end
-30
View File
@@ -1,30 +0,0 @@
#!/usr/bin/env ruby
require File.join(File.dirname(__FILE__), 'default_libs')
require File.join(File.dirname(__FILE__), 'vundle')
GitStyleBinary.command do
version "yadr-delete-vim-plugin 1.0"
short_desc "Removes a vim plugin"
opt :url, "Repository URL (see usage)", :required => true, :type => String
banner <<-'EOS'
Usage: yadr-delete-vim-plugin --url [URL]
Specify a plugin repository URL in one of the following forms:
- Custom repository URL (full URL): git://git.wincent.com/command-t.git
- Github repository (username/repo_name): robgleesson/hammer.vim.git
- Vim script repository (plugin_name): FuzzyFinder
EOS
run do |command|
repo=command.opts[:url]
puts "Removing \"#{repo}\" from the plugin list"
bundle_path=repo.gsub("https://github.com/", "")
removed=Vundle::remove_plugin_from_vundle repo
if removed
Vundle::update_vundle
puts "Successfully removed\"#{repo}\""
else
puts "Unable to find \"#{repo}\" among the installed plugins"
end
end
end
-21
View File
@@ -1,21 +0,0 @@
#!/usr/bin/env ruby
require File.join(File.dirname(__FILE__), 'default_libs')
require File.join(File.dirname(__FILE__), 'vundle')
GitStyleBinary.command do
version "yadr-list-vim-plugin 1.0"
short_desc "List installed vim plugins"
banner <<-'EOS'
Usage: yadr-list-vim-plugin
EOS
run do |command|
puts "Currently configured plugins:"
i=1
Vundle::vundle_list.each do |plugin|
puts "#{i}. #{plugin}"
i=i+1
end
end
end