Compiling with C.vim on Windows?

C.Vim works, as evidenced by the commands I used, syntax highlighting and pattern. But I use \rc, and nothing happens. \rrtells me that there is no .exe, and the search for "Everything" tells me that this is not a directory problem.

In all the resources that I read, I do not see anything that indicates the need to specify it to a specific compiler, although I installed Visual Studio 2010.

How do I get C.vim to compile my code? I am a relative newbie with Vim and C.

Edit: I set the Windows environment variable to C: / cygwin / bin, where I downloaded and installed the GCC packages, but still getting the same error.

Edit2: I also downloaded Msys and Mingw. I tried to configure Eclipse by following the instructions here . Running make from the command line tells me that GNU Make 3.81 works. Running :makein 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: Code :: Blocks works for me, which I used to run. (It has been a while since I programmed, and even then I was a beginner.) I did not have to configure it at all, although I would prefer to use Vim, so help is still very much appreciated.

Edit4: make vimFirst (vimFirst.c - ) ! :! vimFirst.exe , . , , C.vim? \rc , 1/10 .

+3
1

Edit4: running make vimFirst (vimFirst.c - ) ! :! vimFirst.exe . ... type\rc ...

\rc \rr:

:map \rc
:map \rr

, no_plugin_maps - vimrc.

, , , :

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

Visual Studio nmake , :compiler, :compiler msvc makeprg errorformat nmake Visual Studio.

, make , , .

+2

Source: https://habr.com/ru/post/1790338/


All Articles