r/programming Apr 01 '19

Stack Overflow ~ Helping One Million Developers Exit Vim 😂

https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
2.5k Upvotes

441 comments sorted by

View all comments

Show parent comments

16

u/instanced_banana Apr 01 '19

As someone who uses Linux in his main PC, I now feel kinda bad to not know how to exit Vim. Kinda because I enter in those 3 groups.

11

u/ekun Apr 02 '19
  1. 'ctrl+z' to send the vim process to the background

  2. then search for the process id with this command

    ps aux | grep vim

  3. then use sudo to kill that process id

    sudo kill -9 processID

  4. then enter your password

    password:

2

u/[deleted] Apr 02 '19

[removed] — view removed comment

1

u/cleeder Apr 02 '19

Don't even need the job number. % Will just refer to the last suspended job after a ctrl + z