Skip to content

vim

Key binding reference for Vim and Neovim. Ask in plain language — the skill returns the bindings most relevant to your query.

Source: vim.org · Neovim docs

Usage

/vim                         # 8-key quick-ref for spec workflows
/vim open a file             # file navigation bindings
/vim search and replace      # search/substitute bindings
/vim split the window        # split management
/vim switch between buffers  # buffer navigation
/vim everything              # full reference

Examples

/vim how do I open a file

:e <path>   Open file (Tab-completes paths)
:Ex         Open netrw file explorer
Ctrl-^      Toggle alternate (last) file
gf          Go to filename under cursor

/vim search and replace

/<pattern>          Search forward (n/N to navigate)
:%s/pat/rep/gc      Replace all with confirm per match
:%s/pat/rep/g       Replace all without confirm
Ctrl-r Ctrl-w       Paste word under cursor into : command

/vim (no args)

:e <path>        Open file by path (Tab to complete)
Ctrl-^           Toggle alternate (last) file
gf               Go to file under cursor
Ctrl-w v         Vertical split
/<pattern>       Search forward
:%s/pat/rep/gc   Search-replace with confirm
:w               Save
:x               Save and quit (only writes if changed)

Guide integration

Pass --vim to spec guide to inject relevant bindings at each task step:

bash
/spec guide --vim

Hint type is inferred from the task description — file creation tasks get file bindings, refactor tasks get search-replace bindings.

Released under the MIT License.