DocsKeys (Vim for Google Docs)

Vim-style keyboard shortcuts for Google Docs. Ported from the DocsKeys extension.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
icemoss
Instalări zilnice
0
Total instalări
3
Rating-uri
0 0 0
Versiune
1.3.4
Creat
09-01-2026
Actualizat
11-01-2026
Size
17 KB
Licență
MIT
Se aplică pe

Vim for Google Docs - DocsKeys Port

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.

Features & Key Mappings

Modes

  • Normal Mode: Default state. Navigate and manipulate text.
  • Insert Mode: Type normally. (Press Esc to return to Normal Mode).
  • Visual Mode: Select text character-by-character (v).
  • Visual Line Mode: Select text by line (V).

Navigation (Normal Mode)

  • h, j, k, l: Left, Down, Up, Right
  • w / b: Next word / Previous word
  • e: End of word
  • 0 / ^: Start of line
  • $: End of line
  • gg: Top of document
  • G: Bottom of document
  • { / }: Paragraph Up / Down
  • Ctrl+u / Ctrl+d: Page Up / Page Down

Editing

  • x: Delete character
  • u: Undo
  • r: Redo
  • dd: Delete (Cut) current line
  • yy: Yank (Copy) current line
  • Ctrl+v: Paste (due to browser security, p to paste is unsupported)
  • dw: Delete word
  • cw: Change word (delete word and enter insert mode)
  • D / C: (Not fully implemented, use d$ or c$)

Insert Mode Entry

  • i: Insert before cursor
  • I: Insert at start of line
  • a: Append after cursor
  • A: Append at end of line
  • o: Open new line below
  • O: Open new line above

Visual Mode

  • v: Start character selection
  • V: Start line selection
  • Standard movement keys (h, j, k, l, w, $, etc.) extend the selection.
  • y: Yank selection
  • d: Delete (Cut) selection

Search

  • /: Open Google Docs Find tool

Count Support

Most motions support numbers.

  • 10j: Move down 10 lines
  • 5w: Move forward 5 words