Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3981108
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:22:15+00:00 2026-05-20T05:22:15+00:00

C.Vim works, as evidenced by the commands I’ve been using, syntax highlighting, and template.

  • 0

C.Vim works, as evidenced by the commands I’ve been using, syntax highlighting, and template. But I use \rc and nothing happens. \rr tells me that there is no .exe, and an Everything search tells me that it’s not a directory issue.

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.

How do I get C.vim to compile my code? I’m a relative beginner with Vim and C.

Edit: 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.

Edit2: I’ve downloaded Msys and Mingw as well. I tried setting up Eclipse as well, following the instructions here. Running make from the command line tells me that GNU Make 3.81 is running. Running :make in Vim tells me:

shell returned 2
(1 of 1) : make *** No targets specified and no makefile found

Trying Eclipse, I get another make error:

make: *** No rule to make target `all'; Stop.

Edit3: 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.

Edit4: running make vimFirst (vimFirst.c is my file) compiles! Running the program with :! vimFirst.exe 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 \rc and have the program compile and run, which is about 1/10 of the typing of the other method.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:22:16+00:00Added an answer on May 20, 2026 at 5:22 am

    Edit4: running make vimFirst (vimFirst.c is my file) compiles! Running the program with :! vimFirst.exe works as expected. Now returning to the original question, … type \rc and have the program compile and run…

    Check your maps for \rc and \rr:

    :map \rc
    :map \rr
    

    If no mapping exists, you might have no_plugin_maps or something similar set in your vimrc.

    I think you’ll get what you want if you set them up like this:

    nmap \rc :make %<<CR>
    nmap \rr :! %<.exe<CR>
    

    If you’re really familiar with Visual Studio and want to use nmake to build your code, you should check out the :compiler option. :compiler msvc will setup your makeprg and errorformat for nmake and Visual Studio’s compiler.

    I’m not sure what make is currently using to build your code, so I don’t know what compiler setting you’d want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Most of the time the autocomplete feature in Vim works nicely for me, but
Vim (actually, gvim is in question, but I believe it works both ways) upon
While Ctrl X works fine in vim under windows, Ctrl A selects all (duh).
While using Vim (at home and at work), I often find myself doing similar
Vim is my favorite tool for programming in OSX, but my team mate all
Using Vim I often want to replace a block of code with a block
Using Vim, I'm trying to pipe text selected in visual mode to a UNIX
I'm starting to use Linux and Vim at work. I'm started reading vims documentation
I am programming in C++ or Java. So I want to use Vim editor,
Until now, I was debugging my PHP scripts and testcases using vim and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.