send_keys
Send raw keystrokes to Neovim as user input for normal-mode motions, visual selections, and operator sequences. Automatically prepends Esc to start in normal mode. Returns confirmation of dispatched keys.
Instructions
Send raw keystrokes to Neovim as if typed by the user. This is a mutation tool — keystrokes can modify buffers, change mode, and trigger editor actions.
keys: a string of Vim keystrokes. Esc is prepended automatically, so input always begins in normal mode. Multi-mode sequences must be sent in a single call (e.g. "17GVG", not "17GV" then "G"). Use Vim notation for special keys (e.g. "", "v", "").
Use this for normal-mode motions, visual selections, or operator
sequences. Use send_command for ex commands, and
find_and_replace_buf or write_full_buf for text edits — they
are safer and provide structured results.
Returns {sent} confirming the keys that were dispatched. Keystrokes are fire-and-forget; errors from the resulting Vim actions are not captured in the return value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes |