cask "macvim" do version "180" sha256 "cbb56be27e48975135bc7f83d62480097469e8a4fdf93e7e2ae165e71cbec117" url "https://github.com/macvim-dev/macvim/releases/download/release-#{version}/MacVim.dmg" name "MacVim" desc "Text editor" homepage "https://github.com/macvim-dev/macvim" livecheck do url :url regex(/^release[._-]v?(\d+(?:\.\d+)*)$/i) end auto_updates true conflicts_with formula: "macvim" app "MacVim.app" %w[ gview gvim gvimdiff gvimex mview mvim mvimdiff mvimex view vim vimdiff vimex vi ].each { |link_name| binary "#{appdir}/MacVim.app/Contents/bin/mvim", target: link_name } zap trash: [ "~/Library/Caches/org.vim.MacVim", "~/Library/Preferences/org.vim.MacVim.LSSharedFileList.plist", "~/Library/Preferences/org.vim.MacVim.plist", ] end