how do I save in vim?

Discussion in 'HOWTO-Related Questions' started by Heeter, Dec 25, 2008.

  1. Heeter

    Heeter Member

    hi all,

    I am using the ubuntu server 8.10 howto. I just finished configuring the network eth0 using vim. How do I save and get out of vim?

    If I screw it up, how do i get out of vim without saving?

    This is my first time using command line.

    Thanks

    Heeter
    ________
    Vaporgenie Reviews
     
    Last edited: Mar 7, 2011
  2. denbert

    denbert New Member

    Forget vim - it's hell from the past :)

    use nano e.g:

    Code:
    nano /etc/hosts
    See in the bottom, with the easy explanation of functions - save is ctrl+x as EXIT will ask you if you want to save the changes - there you have the possibility to say NO, if you makes a mistake :D
     
    Last edited: Dec 25, 2008
  3. Heeter

    Heeter Member

    Hahahaha, Hell from the past.


    Using vim cause it's what's in the howto.


    Thanks a million


    Heeter
    ________
    VAPORIZER SHOP
     
    Last edited: Mar 7, 2011
  4. denbert

    denbert New Member

    Hi Heeter,

    I know, it's in almost all the howto's on this website.

    Simply write nano and then paste the rest (assuming you are using putty)

    e.g.

    vi /etc/hosts

    should be

    nano /etc/hosts

    Easy and you will love it :D
     
  5. Heeter

    Heeter Member

    Haven't made it to putty stage yet, still at configging the eth0.

    Thanks

    Heeter
    ________
    Kawasaki zg1200a
     
    Last edited: Mar 7, 2011
  6. falko

    falko Super Moderator ISPConfig Developer

Share This Page