VIM - Getting Started

Card Puncher Data Processing

About

vim Getting Started page.

Steps

Install VIM

See VIM - Installation

Open a file

To open the file, run

vim /path/to/file

The contents of the file must appear.

The file is created if it does not exist yet.

The below command will get you in vi not in vim and you will lost some improvement.

vi /path/to/file

How to edit a file

To work with VIM, you navigate between two modes:

When you want to edit/modify a file, the logical sequence is:

  • create/open a file in Vim
vim tmp.txt
  • Tape i to enter in Insert Mode and type your text and made modifications
Hello Nico

  • The screen must be like this

Vim Insert Mode

  • to press the ESC button to leave the insert mode and to enter in a normal mode
  • save the file by entering the command :w

Quit

You would type the command,

  • ESC to go to the normal mode
  • then:
    • :q to quit Vim
    • or :q! to quit without saving. The override command modifier ! is needed because Vim is reluctant to throw away changes





Discover More
Card Puncher Data Processing
Text Editor - Vi (VIM)

Text Editor - Vi (VIM) VIM stands for Vi IMproved. is a command line text editor New to VIM, see Vim is: * a code editor * a file browser * a shell *...



Share this page:
Follow us:
Task Runner