Online Linux Terminal Logo
OnlineLinuxTerminal
Editors & ShellCLI Reference

$vim

Highly configurable, powerful modal text editor.

Syntax DefinitionPOSIX standard
vim [OPTIONS] [FILE...]
Linux Community2.4k Online

Chat with real Linux users, learn new commands & get free cheat sheet PDFs.

Try `vim` Live in Interactive Sandbox

Zero-install client simulation with real-time feedback.

Open in Fullscreen Workspace↗
bash — terminal

Overview & How vim Works

`vim` (Vi IMproved) is an advanced modal text editor built for efficient text editing. It uses distinct modes: Normal mode for navigation, Insert mode (`i`) for typing text, Visual mode (`v`) for selecting blocks, and Command mode (`:`) for file saving and quitting (`:wq`).

Common Flags & Command Options

Flag / OptionDescription
+[num]Start editing file at specified line number.
-RRead-only mode to prevent accidental overwrites.

Practical Real-World Examples

Example #1Edit configuration in vim
vim welcome.txt

Launches vim editor modal in the sandbox.

Frequently Asked Questions

How do you exit vim?

Press `Esc`, type `:wq` and hit Enter to save and quit, or `:q!` to quit without saving.