|
|
2010-07-21
, 10:26
|
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#2
|
|
|
2010-07-21
, 10:29
|
|
Posts: 137 |
Thanked: 71 times |
Joined on Mar 2008
|
#4
|
i edited some info in xyz.conf file
how do i save this???
how do i quit from vi editor without saving?
pls help
|
|
2010-07-21
, 10:38
|
|
Posts: 142 |
Thanked: 8 times |
Joined on Jul 2010
|
#5
|
http://lmgtfy.com/?q=vi+manual
|
|
2010-07-21
, 10:38
|
|
Posts: 142 |
Thanked: 8 times |
Joined on Jul 2010
|
#6
|
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
|
|
2010-07-21
, 10:39
|
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#7
|
| The Following User Says Thank You to ossipena For This Useful Post: | ||
|
|
2010-07-21
, 10:45
|
|
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
|
|
|
2010-07-21
, 16:53
|
|
Posts: 142 |
Thanked: 8 times |
Joined on Jul 2010
|
#9
|
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.
...got it....i forgot to type the ":"
how do i save this???
how do i quit from vi editor without saving?
pls help