Sunday, August 23, 2009

Re: Suggest a vim task for a college workshop

Vlad Dogaru 写道:
>
> The second task has been, for the past 2 years, writing a small C
> program and compiling it "from vim", using :!. I think we can do
> something a bit more exciting than that. Care to suggest something?
>

If you have a Makefile or have properly setup your 'makeprg' you can use
:make to compile your program, and the cursor will be placed at the
first compile error/warning. You can then use :cn to go to the next error.

you can see
:h make
:h quickfix


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: