Very basic Vim question

Discussion in 'Technical' started by shiidii, Aug 7, 2006.

  1. shiidii

    shiidii New Member

    I have been using Vim long enough to know this, but how do you exit 'Insert/replace' mode?
    I just go to an empty line and press Alt+Delete, but this is a stupid way and might damage your code accidently if you dont do it on an empty line.
     
  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

    For what alt + del, or what is exactly your question? I can't get the point here.

    I hit "alt + del" in view mode on a non empty line, nothing happens in insert mode it just does the same "del" does.
     
  3. shiidii

    shiidii New Member

    Scenario:
    I edit file.cf
    I press the Insert key to enter insert mode
    I make my changes
    In order to save and quit I must type :wq but I need to exit insert mode otherwise I type :wq into the file.
    Alt Delete is what I am currently using to exit insert mode. But for me it also deletes text.

    So, what key do you use to exit insert mode?
     
    Last edited: Aug 7, 2006
  4. Ben

    Ben ISPConfig Developer ISPConfig Developer

    ah, sorry I misunterstood your sentence, I thought you already know it... just hit escape to leave it. then type :wq or :x
    in case of ignore chagnes type :q!
     
  5. shiidii

    shiidii New Member

    Ahh, esc! Thanks
     
  6. falko

    falko Super Moderator ISPConfig Developer

Share This Page