Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiling with C.vim on Windows?
    text
    copied!<p>C.Vim works, as evidenced by the commands I've been using, syntax highlighting, and template. But I use <code>\rc</code> and nothing happens. <code>\rr</code> tells me that there is no .exe, and an Everything search tells me that it's not a directory issue.</p> <p>In all the resources I've read, I don't see anything that says I need to point it to a specific compiler, though I've installed Visual Studio 2010.</p> <p>How do I get C.vim to compile my code? I'm a relative beginner with Vim and C.</p> <p><strong>Edit:</strong> I've set the Windows Environment Variable to C:/cygwin/bin where I've downloaded and installed the GCC packages, but am still getting the same error.</p> <p><strong>Edit2:</strong> I've downloaded Msys and Mingw as well. I tried setting up Eclipse as well, following the instructions <a href="http://docs.google.com/viewer?a=v&amp;q=cache%3au6xemfJ1iJwJ%3amax.berger.name/howto/cdt/cdt.pdf+%22Launch+Failed.+Binary+not+found.%22+eclipse+windows&amp;hl=en&amp;gl=us&amp;pid=bl&amp;srcid=ADGEESjJKWaWehmyyt0OqLrQgrFfjY-x07qnd_SkK2ANUlRnnBc7fpxH8KzbGeBKb07gGldjCPkgpT3MV4dY3FbW5uz_LeSxKduyWPMo577W3KpdTJRDWj5UxrKqsV0rIHOw7yJ6PyDQ&amp;sig=AHIEtbR6avknW14UoX3b2QWjshPzawpAEQ" rel="nofollow">here</a>. Running make from the command line tells me that GNU Make 3.81 is running. Running <code>:make</code> in Vim tells me:</p> <pre><code>shell returned 2 (1 of 1) : make *** No targets specified and no makefile found </code></pre> <p>Trying Eclipse, I get another make error:</p> <pre><code>make: *** No rule to make target `all'; Stop. </code></pre> <p><strong>Edit3:</strong> I got Code::Blocks running, which is what I used to run. (It's been a while since I programmed, and even then I was a beginner.) I didn't really have to configure it at all, though I would still prefer to use Vim, so help is still much appreciated. </p> <p><strong>Edit4:</strong> running <code>make vimFirst</code> (vimFirst.c is my file) compiles! Running the program with <code>:! vimFirst.exe</code> works as expected. Now returning to the original question, how to do it with C.vim? It would be so much more convinient to type <code>\rc</code> and have the program compile and run, which is about 1/10 of the typing of the other method. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload