P
P
Petr Volkhanov2013-12-26 21:45:51
linux
Petr Volkhanov, 2013-12-26 21:45:51

How to edit a file in vim basic editor?

Good evening.
Ubuntu 13.10, I'm trying to edit the php.ini file as root - the vim basic editor has opened. How can I edit a file and save it? One line needs to be edited to display errors when executing PHP files.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2013-12-26
@eprivalov

Go to edit location with h/j/k/l, press i to start editing, esc to end, type :w to write file. :q to exit.

L
LIAL, 2013-12-26
@LIAL

And you can just exit vim :q , (maybe for those who saw it for the first time - evokes horror). Then install mc (apt-get install mc) and then run mc and the good old F4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question