On Jul 5, 7:28 pm, Linda W <[email protected]> wrote:
> I thought this was possible in vim, but i've never done it.
>
> I'm in vim (or gvim), and am editing a file (say type 'C').
>
> I want it to run 'gcc' then scan the error outputs and maybe split the
> window showing me the error message and taking me to the first error
> mentioned.
>
> Perhaps some keypress would allow me to skip forward or backward to the next
> or previous error as mentioned in the compiler output --
>
> I might find the same usefule for other languages like perl and such -- and
> I thought vimg supported this type of edit-compile-(get errs), edit-- up to it
> compiling cleanly -- at which point, I could exit vim (or not, if I used
> '!', and run my program.
>
> I've looked at compile, make, compiler, gcc, but don't get the topics I'm
> looking
> for -- I'm sure it's in the help *somewhere* (?) assuming I having imagined
> this type of usage in vim.
>
> Anyone familiar with this type of usage?
>
> To be more complex, one might try executing a makefile, and if you
> were at the top level, and it, lets say, was a C or C++ proj, then
> when errors pop out, vim would parse the paths and let you edit files
> with errors even if located in a subdir...but that's a further advanced tweak.
>
:help quickfix
Read the whole help file, but specifically, within this file:
:help :make
:help :copen
:help :cnext
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---