# Cheats ## Motions - `cgn` change word under cursor, then `.` to repeat on next match - `gc` comment motion (e.g. `gc3j`, `gcap`) - `gcc` toggle comment on current line ## fzf - `f` find files - `g` live grep - `b` buffers - `o` old files - `s` grep word under cursor across project ## Terminal - `` toggle terminal - `` exit terminal mode (back to normal mode) ## Oil - `-` open oil (current file's directory) - `-` go to cwd root - `-` go up a directory (inside oil) - `` open file/directory - `g.` toggle hidden files ## Clipboard - `y` yank to system clipboard (normal/visual) - `p` paste from system clipboard ## General - `h` clear search highlight - `:Cheats` open this file ## System Dependencies - `fzf` fuzzy finder binary (required by fzf-lua) - `rg` ripgrep — required for live grep and grep word (`g`, `s`) - `fd` faster file finding (optional, fzf-lua uses it automatically if present) - `wl-clipboard` / `xclip` system clipboard on Linux (Wayland / X11) Arch: `sudo pacman -S fzf ripgrep fd wl-clipboard` macOS: `brew install fzf ripgrep fd`