New answers tagged makeprg
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 ...
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 $< ...
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 ...
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 ...
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....
Top 50 recent answers are included
Related Tags
makeprg × 53quickfix × 17
vimrc × 6
errorformat × 6
key-bindings × 4
neovim × 3
terminal-buffer × 3
vimscript × 2
command-line × 2
microsoft-windows × 2
filetype × 2
filetype-tex × 2
error × 2
filetype-python × 2
compile-vim × 2
ftplugin × 2
make × 2
regular-expression × 1
gvim × 1
terminal × 1
autocmd × 1
replace × 1
external-command × 1
bash × 1
shell × 1