ex
line-editing mode of vi/vim
TLDR
Start ex mode
SYNOPSIS
ex [options] [files...]
DESCRIPTION
ex is the line-editing mode of vi/vim. It provides command-line editing without the visual interface, useful for scripted file modifications.
Commands are entered on a command line rather than visual mode. The same command language powers vi's : commands. ex can process multiple files sequentially.
ex is valuable for batch editing, allowing search/replace and other modifications without interactive use.
PARAMETERS
FILES
Files to edit.-c COMMAND
Execute command after loading.-s
Silent mode.-R
Read-only mode.-n
No swap file.-V
Verbose mode.
CONFIGURATION
~/.exrc
User configuration file for ex initialization commands./etc/vimrc or ~/.vimrc
Shared configuration with vim when ex is invoked via vim.
CAVEATS
Learning curve if unfamiliar with ed/vi commands. No visual feedback. Complex edits may be error-prone. Usually invoked via vim -e.
HISTORY
ex was developed by Bill Joy at UC Berkeley in the late 1970s as an extended version of ed. It later gained the visual interface that became vi, with ex remaining as the command mode.
