editor enabled community medium v1.0.0

vim

Vim text editor; can execute arbitrary commands and read/write files via embedded interpreters.

📋 Live Preview
vim
vim

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networknone
Disk I/Olow

Examples

Read arbitrary files (sudo, suid, unprivileged)

vim -c ':redir! >/path/to/output-file | echo "DATA" | redir END | q'

Leverage python capabilities

vim -c ':py ...'

Leverage lua capabilities

vim -c ':lua ...'

Leverage vi capabilities

vim

Documentation

vim

vim is a command-line utility. Improved vi editor, can execute arbitrary commands and read/write files; can also read arbitrary files Can also leverage capabilities from: python, lua, vi.

References