On Aug 26, 3:56 am, eliweiq001 <eliweiq...@gmail.com> wrote: > Hi ! > > I want to achieve this: > > map xxxx :make!<CR> (whether there are errors) ? ( :copen<CR>) : ( do > nothing) > > I don't want to use :cw is because it will close cwindow If there are > no recognized errors, I want to keep the window if it is already open. >
Wow, I didn't realize that about :cw. If you don't get a better answer, I'd start with this workaround: :make! (get number of windows using winnr('$') :cw (get number of windows again) If number of windows is after :cw is less than number of windows before :cw, do a :copen -- 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