# 我的Vim体验

## 段子

I’ve been using Vim for about 2 years now, mostly because I can’t figure out how to exit.

## Emacs和Vim入门教程的区别

After saving your changes, you can quit Vim with :q. Or the saving and quitting can be combined into one operation with :wq.

If you want to discard any changes, enter :q! to quit Vim without saving.

It is possible to have more than one file open in Vim, and there are commands for saving or quitting when working with multiple files (see :help window-exit):
:wa write all changed files (save all changes)
:xa exit all (save all changes and close Vim)
:qa quit all (close Vim, but not if there are unsaved changes)
:qa! quit all (close Vim without saving—discard any changes)

Vim Tutorial

Emacs Tutorial