Notices


Reply
Thread Tools
Posts: 142 | Thanked: 8 times | Joined on Jul 2010
#1
i edited some info in xyz.conf file


how do i save this???

how do i quit from vi editor without saving?

pls help
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#2
http://lmgtfy.com/?q=vi+manual
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Posts: 47 | Thanked: 7 times | Joined on Feb 2010
#3
to save file and exit

:wq

to exit without saving :q!
 

The Following User Says Thank You to anti-dualism For This Useful Post:
Posts: 137 | Thanked: 71 times | Joined on Mar 2008
#4
Originally Posted by s33 View Post
i edited some info in xyz.conf file


how do i save this???

how do i quit from vi editor without saving?

pls help
http://staff.washington.edu/rells/R110/

# Exiting vi

* To exit you must be in command mode-press <Esc> if you are not in command mode

* You must press <Return> after commands that begin with a : (colon)

From Command Mode

ZZ Write (if there were changes), then quit

:wq Write, then quit

:q Quit (will only work if file has not been changed)

:q! Quit without saving changes to file
 
Posts: 142 | Thanked: 8 times | Joined on Jul 2010
#5
Originally Posted by ossipena View Post
http://lmgtfy.com/?q=vi+manual
thanx man...
 
Posts: 142 | Thanked: 8 times | Joined on Jul 2010
#6
Originally Posted by tekplay View Post
http://staff.washington.edu/rells/R110/

# Exiting vi

* To exit you must be in command mode-press <Esc> if you are not in command mode

* You must press <Return> after commands that begin with a : (colon)

From Command Mode

ZZ Write (if there were changes), then quit

:wq Write, then quit

:q Quit (will only work if file has not been changed)

:q! Quit without saving changes to file
got it thnxxxxxxxxxxxxxxxxxxx
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#7
Originally Posted by s33 View Post
thanx man...
no problem. at least I need the whole manual if I need to use vi.... I prefer nano/pico
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 

The Following User Says Thank You to ossipena For This Useful Post:
Posts: 1,992 | Thanked: 3,339 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#8
Click Ecs before typing any commands! Or you will type text in the file instead of commands.

Click 'i' to make sure you aren't in command mode. Or else you will delete a line instead of typing 'dd'.

Commands:

i to edit file
:q to close file if you haven't changed it
:q! to close file without saving changes
:w to save changes
:wq to close file with saving changes
dd to delete line

More commands:
http://www.cs.fsu.edu/general/vimanual.html

Be patient. Experiment. Read.
And back-up the file.
 
Posts: 142 | Thanked: 8 times | Joined on Jul 2010
#9
Originally Posted by Wikiwide View Post
Click Ecs before typing any commands! Or you will type text in the file instead of commands.

Click 'i' to make sure you aren't in command mode. Or else you will delete a line instead of typing 'dd'.

Commands:

i to edit file
:q to close file if you haven't changed it
:q! to close file without saving changes
:w to save changes
:wq to close file with saving changes
dd to delete line

More commands:
http://www.cs.fsu.edu/general/vimanual.html

Be patient. Experiment. Read.
And back-up the file.
thanks a lot...got it....i forgot to type the ":"
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 01:55.