Hi,

On 10/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
"Peng Yu" <[EMAIL PROTECTED]> 写于 2006-10-18 23:18:14:
> On 10/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > for that simple, don't need any plugin:
> >
> > map <F12> <ESC>:w<kEnter>:make<kEnter>:cope<kEnter>
> >
> > You see, just add the :cope will do the trick.
> >
> > Note that the cursor will be in :cope window then, you may need to
press an
> > enter key to go into the first error. But what to do when there's no
error?
> > then <CR> does nothing.
>
> Is it possible to not to press the last enter key? It is not very
convenient.
>
> Thanks,
> Peng

try this instead:

map <F12> <ESC>:cope<kEnter><C-W>p:w<kEnter>:make<kEnter>


You can also use the following map:

nnoremap <F12> :update<CR>:make<CR>:copen<CR>:wincmd p<CR>

- Yegappan

Reply via email to