Ask Your Question
1

How to kill Vim in Bash when receiving the warning "Vim: Warning: Output not to a terminal"?

asked 2022-08-24 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-12-22 18:00:00 +0000

lalupa gravatar image

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:

  1. 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).

  2. 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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2022-08-24 11:00:00 +0000

Seen: 14 times

Last updated: Dec 22 '21