New answers tagged

0 votes

Translate file paths in quickfix list

In BuildToolsWrapper I have a hook for translating cygwin pathnames into gvim(-win32) pathnames. The approach I've taken consists in piping make/ninja... output into another program that'll do the ...
user avatar
  • 16.1k
0 votes

Edit compile and run cycle

For the sake of completeness, similar to what Kaz outlined before, but even simpler. Simply add a target to your executable with the appropriate requirements: build/bin/run: 1.cpp g++ -Wall $< ...
user avatar
1 vote

Edit compile and run cycle

You can just add running the program to the Makefile as a target: for example, one named run. Then you just :make run. run has a dependency on the program, to make sure that the program is created or ...
user avatar
  • 361
1 vote
Accepted

Edit compile and run cycle

Assuming you have the makeprg set up correctly: let &l:makeprg = 'cd build && make' The &l: syntax for let sets local variables; you can also use setlocal but then you need to use ...
user avatar
2 votes

Edit compile and run cycle

At this moment detecting whether the compilation has successfully ended to chain with something else requires scripting. For more detailed explanations/example, see this SO Q/A: https://stackoverflow....
user avatar
  • 16.1k

Top 50 recent answers are included