write VIM Command

How to use write Command in Linux VIM editor?

Explanation


This command is used to save the changes done in a file before quitting the file.

Usage:

:write or :w

Example:

  • Open 'one.txt' file
    $ vim one.txt
  • Enter the text into the file.
    Enter abcdefghijklmnopqrstuvwxyz
  • To come out of write mode
    Press Esc
  • Write the changes into the file.
    Enter :write
    or
    Enter :w
    Write VIM Command

Ask Questions

Ask Question