How to get out of vi

Thread Tools Search this Thread
# 1  
[Solved] How to get out of vi

I created a file and edited in vi. Do you save the file in the editor or hit esc to come out of edit mode and save the file?
# 2  
Hi, type esc to get out of edit mode and then:
:wq <ENTER>

Or use this shortcut:

# 3  
To save the file
use esc :wq

# 4  
Check out the vi/vim cheat sheet. There is also a link there to a short vi and vim utilities tutorial.
# 5  
you may also want to see this :
vim tips and tricks

Last edited by mukulverma2408; 11-22-2012 at 04:27 PM.. Reason: link
# 6  
Moderator's Comments:
Mod Comment In the interest of maintaining the knowledge base i changed the threads title to something meaningful.

# 7  
Thanks everyone for your help. I figured it out.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Science: Gadgets
Difficulty: Easy
Microphones can be used not only to pick up sound, but also to project sound similar to a speaker.
True or False?

Featured Tech Videos