The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
UNIX for Dummies Questions & Answers
How to get out of vi
Tags
beginners
,
solved
Thread Tools
Search this Thread
Top Forums
UNIX for Dummies Questions & Answers
How to get out of vi
#
1
11-20-2012
debsawyer
Registered User
2,
0
Join Date: Nov 2012
Last Activity: 27 November 2012, 2:00 AM EST
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
[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?
debsawyer
View Public Profile for debsawyer
Find all posts by debsawyer
#
2
11-20-2012
Scrutinizer
Moderator
12,296,
3,792
Join Date: Nov 2008
Last Activity: 1 January 2021, 1:47 AM EST
Location: Amsterdam
Posts: 12,296
Thanks Given: 679
Thanked 3,792 Times in 3,282 Posts
Hi, type esc to get out of edit mode and then:
Code
:
:wq <ENTER>
Or use this shortcut:
Code
:
ZZ
Scrutinizer
View Public Profile for Scrutinizer
Find all posts by Scrutinizer
#
3
11-20-2012
senthilkumark
Registered User
18,
3
Join Date: Mar 2012
Last Activity: 12 May 2016, 9:50 AM EDT
Posts: 18
Thanks Given: 1
Thanked 3 Times in 3 Posts
To save the file
Code
:
use esc :wq
senthilkumark
View Public Profile for senthilkumark
Find all posts by senthilkumark
#
4
11-20-2012
Don Cragun
Registered User
12,315,
4,560
Join Date: Jul 2012
Last Activity: 22 November 2019, 4:29 PM EST
Location: San Jose, CA, USA
Posts: 12,315
Thanks Given: 952
Thanked 4,560 Times in 3,818 Posts
Check out the
vi/vim cheat sheet
. There is also a link there to a short vi and vim utilities tutorial.
Don Cragun
View Public Profile for Don Cragun
Find all posts by Don Cragun
#
5
11-22-2012
mukulverma2408
Registered User
82,
2
Join Date: Jul 2012
Last Activity: 10 February 2020, 11:44 AM EST
Posts: 82
Thanks Given: 33
Thanked 2 Times in 2 Posts
you may also want to see this :
vim tips and tricks
Last edited by mukulverma2408; 11-22-2012 at
04:27 PM
.. Reason: link
mukulverma2408
View Public Profile for mukulverma2408
Find all posts by mukulverma2408
#
6
11-25-2012
bakunin
Registered User
6,384,
2,214
Join Date: May 2005
Last Activity: 28 October 2019, 4:59 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 6,384
Thanks Given: 143
Thanked 2,214 Times in 1,548 Posts
Moderator's Comments:
In the interest of maintaining the knowledge base i changed the threads title to something meaningful.
bakunin
bakunin
View Public Profile for bakunin
Find all posts by bakunin
#
7
11-25-2012
debsawyer
Registered User
2,
0
Join Date: Nov 2012
Last Activity: 27 November 2012, 2:00 AM EST
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
Thanks everyone for your help. I figured it out.
debsawyer
View Public Profile for debsawyer
Find all posts by debsawyer
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×