You can try pressing Ctrl+C or Ctrl+D to exit Vim. If that doesn't work, you can kill the process by finding its process ID (PID) and using the command "kill PID". Here's how:
Find the PID: Open a new terminal window and type "ps aux | grep vim". This will list all processes containing the word "vim". Find the process that matches the one you're interested in and note down its PID (it's the number in the second column).
Kill the process: Type "kill PID" where PID is the process ID you noted down in step 1. This will send a signal to the Vim process to terminate.
If you're not sure which process to kill, you can also try the command "pkill vim", which will kill all processes containing the word "vim". However, be aware that this may also kill Vim processes that are running in other terminal windows.
Asked: 2022-08-24 11:00:00 +0000
Seen: 14 times
Last updated: Dec 22 '21