Skip to content

Instantly share code, notes, and snippets.

Zed Vim Mode Cheat Sheet

Zed's Vim mode replicates familiar Vim behavior while integrating modern features like semantic navigation and multiple cursors. This cheat sheet summarizes essential shortcuts and settings to help you navigate and edit code efficiently in Zed.


Enabling/Disabling Vim Mode

  • Enable/Disable Vim Mode: Open the command palette and use Toggle Vim Mode.
  • This updates your user settings: "vim_mode": true or false.
@asdqdsa
asdqdsa / script.js
Created July 28, 2025 23:08
yt-loop
// inject
function ytLoop(from, to) {
const loop = setInterval(() => {
const player = document.getElementById("movie_player");
if (player.getCurrentTime() >= to) {
player.seekTo(from, true);
}
}, 1000);
document.getElementById("movie_player").seekTo(from, true);
// ==UserScript==
// @name slop replacer
// @namespace http://tampermonkey.net/
// @version 1.0
// @description replace every instance of AI with Slop
// @match *://*/*
// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
@asdqdsa
asdqdsa / index.js
Last active January 27, 2025 11:06
#!/usr/bin/env node
const fs = require("fs");
const path = require("path");
const flagFilePath = path.join(require("os").homedir(), ".lucky-charm-flag");
if (!fs.existsSync(flagFilePath)) {
console.log("WARNING: ur system is being monitored... jk lol 🫣");
fs.writeFileSync(flagFilePath, "you’ve been here before");

You can run this harmless gist with the npx command

npx https://gist.github.com/asdqdsa/fc8fa6843c14211d0534972d75c6dd33