DocsKeys (Vim for Google Docs)

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
icemoss
Denně instalací
0
Celkem instalací
3
Hodnocení
0 0 0
Verze
1.3.4
Vytvořeno
09. 01. 2026
Aktualizováno
11. 01. 2026
Size
17,0 KB
Licence
MIT
Spustit na

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