On Thu, March 17, 2011 12:14 pm, Ivan Krasilnikov wrote: > On Thu, Mar 17, 2011 at 11:08, Forest Wang <[email protected]> wrote: >> All, >> >> Say, in a terminal, I opened many files by invoking vim or gvim program >> many >> times, like: >> >> vim a& >> vim b& >> vim c& >> ... >> >> Than I realized I need to close all of them. So I had to close them one >> by >> one: >> >> %1 and :qa! >> %2 and :qa! >> ... >> >> Is there a better way to close all files by issuing one command or one >> script? > > Yes - "killall vim".
This is more a shell specific question and not vim specific (so there might be better ways with your prefered shell). This will also kill vim jobs, that have not been opened that way. Also killall on unix, does what it says. It sends a signal to all jobs and works differently then on linux (just pointing out the obvious, this might be confusing to someone). But I admit, killall was also my first guess to the problem. regards, Christian -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
