Vim for Windows - What do I type to save and exit from a file?

前端 未结 7 2140
眼角桃花
眼角桃花 2020-12-12 09:01

Using Windows XP I accidentally typed git commit -a instead of git commit -am \"My commit message\", and now I\'m viewing my CMD prompt filled

相关标签:
7条回答
  • 2020-12-12 09:46
    • Press i or a to get into insert mode, and type the message of choice

    • Press ESC several times to get out of insert mode, or any other mode you might have run into by accident

      • to save, :wq, :x or ZZ

      • to exit without saving, :q! or ZQ

    To reload a file and undo all changes you have made...:

    Press several times ESC and then enter :e!.

    0 讨论(0)
提交回复
热议问题