Skip to content

Instantly share code, notes, and snippets.

@comficker
comficker / vim-command-line.md
Last active December 21, 2023 03:58
Vim Command Line
Shortcut Description
<C-r><C-w> Insert current word into the command line
<C-r>\" Paste from " register
<C-x><C-f> Auto-completion of path in insert mode

Vim Cheat Sheet

export class Fish {
constructor() {
this.pos = createVector(R.random_num(0, W), R.random_num(0, H)); // Position vector of fish
this.poi = createVector(0, 0); // Position vector of interest
this.vel = createVector(R.random_dec() * M, R.random_dec() * M); // initialize velocity in unit vector
this.facing = this.vel.heading() // facing of fish
this.speed = R.random_num(0.3, 1) * M; // magnitude to scale vel
this.maxTurn = PI / R.random_int(512, 1024);
this.fl = round(R.random_int(175, 225) * M);
this.laziness = R.random_int(1, 1000);