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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-08-24 11:00:00 +0000
Seen: 14 times
Last updated: Dec 22 '21
How can I print all but the first 1000 Lines from a File in Bash?
Bash Script that checks if a Host is available or not?
How can I check the expiry of a SSL certificate in the Command Line?
How can I only get the Column with the Filename from a ls -all output with Awk?
What is the Difference of "source script.sh" and "./script.sh" in Bash?
How can I fix error: Security violation, ping RPC from uid 1001 in Slurm log?
I want to grep for "```*" in a File, in other Words: "```" followed by any Word
Sed: I want to remove a Word after all ``` in the given File