12

I don't get all the "Can't exit vim" jokes.
IT'S NOT THAT HARD!
Its (esc) : wq to save and exit
And
(esc) : q! to exit without saving.

Just read vimtutor.

Gosh

Comments
  • 0
    @gintko Aight. But a good idea would be to also show the friend vimtutor
  • 3
    Yeah... We all know how to exit vim, it's more when people stumble into it without doing their homework. Vim knowledge is assumed quite often with it being the default editor in examples and tools. Plus many novices (myself a few years ago included) have a lot of difficulty till they decide to learn it and go to a vim tutorial.
  • 2
    My first vim/vimlike hostage situation was when I tried to git commit for the first time, I didn't even know what it was then let alone exit it
  • 2
    @alexbrooklyn lemme guess. A merge conflict?
  • 0
    But if I'm using vim, and haven't quit in the last 5 hours, I'll never remember how to do it.
  • 3
    Neither of those commands are intuitive so if you don't already know how vim works, you're screwed. 99% of apps can be exited the same way; vim's not one of that 99%.
  • 0
    Spoken like a true vim user.
  • 0
    @HampusMa its the default editor for vommit messages.
    If you do "git commit" it will open it. But most of the times I use "git commit -m "message""
  • 0
    Hmm is there another way than the button on your PC?
  • 0
    Exactly!!!
    IT'S NOT THAT HARD!
    Its (ctrl) : ftwx to save and exit
    And
    (ctrl) : xz to exit without saving.

    Gosh
Add Comment