>_
linuxcommand.dev
Home
Roadmap
Contact
EN
Dark
>_
>_
linuxcommand.dev
Home
Roadmap
Contact
Legal Notice
Privacy Policy
Language
DE
EN
Design
Dark
Startseite
›
:saveas file
Vim
:saveas file
Save file as.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Last updated:
2026-07-05
Report error
Syntax
Copy
$
:saveas file
Examples
Examples
$
:saveas newfile.txt
Typical use cases
Save file as
:saveas <file>
Note
Global and Exiting. Saves the file as a new file.
Export
Text
JSON
Script