Horje
vim :qa! Code Example
vim :qa!
"type :quit<Enter> to quit VIi: go to INSERT in the place of the cursor
I: go to INSERT mode at the beginning of the line
a: append after the cursor
A: append at the end of line
o: open a new line below the current line
O: open a new line in the place of the current line
Now, answering the question: exiting.

You can exit vi from EX mode:

q: if you haven't made any modifications, or saved them beforehand
q!: ignores any modifications and quit
wq: save and quit
x: this is equal to wq
w and x accept a file name parameter. If you started vi with a filename, you need not give it here again.

At last, the most important: how can you reach EX mode?

EX mode is for long commands that you can see typing at the bottom line of the screen. From COMMAND mode, you push colon, :, and a colon will appear at the bottom line, where you can type the above commands.

From INSERT mode, you need to push ESC, i.e. the Escape button, going to COMMAND mode, and then: to go to EX mode.

If you are unsure, push ESC and that will bring you to command mode.

The robust method is ESC-:-x-Enter which saves your file and quits.M"




Shell

Related
debian full install qt5 Code Example debian full install qt5 Code Example
kill all process linux Code Example kill all process linux Code Example
ubuntu grub repair Code Example ubuntu grub repair Code Example
ubuntu install elasticsearch terminal Code Example ubuntu install elasticsearch terminal Code Example
read fingerprint ssh-keygen Code Example read fingerprint ssh-keygen Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13