Top community members
All Wiki Articles Create Wiki Article

Many years me and my friends we were volunteers on my university doing programming classes for young people.

I got main conclusion: Young people are awesome, especially students, because they always bring new and fresh ideas :)
* I loved to do it but my time is limited

  I decided to create something that will help millions of students

Now I am here

co-founder

Linux - how to exit vim editor?

0 contributions
14 points

Fast manual - quit without saving

Below steps show how to quit vim editor without saving any changes:

  • Press: Esc
  • Press: : (colon)
  • Type: q!
  • Press: Enter

In details manual - step by step

To quit the vi / vim editor without saving any changes you've made:

If you are currently in insert or append mode

  • Press: Esc
  • Press: : (colon)

The cursor should reappear at the lower left corner of the screen beside a colon prompt.

  • Type: q!
  • Press: Enter

Other option - save and quit

If we want to save the changes and quit change only 1 step, instead of q! we type wq

  • Press: Esc
  • Press: : (colon)
  • Type: wq
  • Press: Enter

Other option - save and still stay in vim

If we want just to save the changes and still stay in vim

Enter the following:

  • Press: Esc
  • Press: : (colon)
  • Type: q
  • Press: Enter

 

0 contributions

Checkout latest Findings & News:

Checkout latest questions:

Checkout latest wiki articles:

Hey 👋
Would you like to know what we do?
  • Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.
Read more