Reputation: 75
I am trying to edit a html file with vi. I made my changes and am now trying to use the :w command to write these to the file. However, the text :w is just being typed on the screen. On the bottom of the terminal, it also says -- INSERT --
What am I doing wrong?
Thanks!
Upvotes: 0
Views: 1581
Reputation: 2150
Press the Escape
key to leave the insert mode. You should then be able to type :w
then hit Enter
and see that the file is written.
You should check out this beginnner tutorial for vi.
Also, try using vim
. It has all of the features of vi
plus more! See here.
If you choose to upgrade to vim
, check out this interactive vim
tutorial.
Upvotes: 2