Vim-style keyboard shortcuts for Google Docs. Ported from the DocsKeys extension.
This script brings Vim-style navigation and editing to Google Docs. It is a port of the DocsKeys extension, designed to run as a lightweight UserScript via ViolentMonkey or TamperMonkey.
It simulates keypresses directly into the Google Docs editor, allowing for familiar Vim motions without needing a heavy browser extension.
Esc to return to Normal Mode).v).V).h, j, k, l: Left, Down, Up, Rightw / b: Next word / Previous worde: End of word0 / ^: Start of line$: End of linegg: Top of documentG: Bottom of document{ / }: Paragraph Up / DownCtrl+u / Ctrl+d: Page Up / Page Downx: Delete characteru: Undor: Redodd: Delete (Cut) current lineyy: Yank (Copy) current lineCtrl+v: Paste (due to browser security, p to paste is unsupported)dw: Delete wordcw: Change word (delete word and enter insert mode)D / C: (Not fully implemented, use d$ or c$)i: Insert before cursorI: Insert at start of linea: Append after cursorA: Append at end of lineo: Open new line belowO: Open new line abovev: Start character selectionV: Start line selectionh, j, k, l, w, $, etc.) extend the selection.y: Yank selectiond: Delete (Cut) selection/: Open Google Docs Find toolMost motions support numbers.
10j: Move down 10 lines5w: Move forward 5 words